MCSM: компонент ServerInfo
This commit is contained in:
@@ -53,6 +53,23 @@ var NvLineChart = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
var ServerInfo = React.createClass({
|
||||
render: function(){return(
|
||||
ce('div', null,
|
||||
ce('div', {className: 'pull-right'},
|
||||
ce('div', {className: 'btn-group'},
|
||||
ce(Button, {btnSize: 'xs'},
|
||||
ce('span', {className: 'glyphicon glyphicon-play'}), nbsp+'запуск'),
|
||||
ce(Button, {btnSize: 'xs'},
|
||||
ce('span', {className: 'glyphicon glyphicon-stop'}), nbsp+'остановка')
|
||||
)
|
||||
),
|
||||
ce('h2', {style: {'margin-top': '0px'}}, this.props.title),
|
||||
this.props.children
|
||||
)
|
||||
)}
|
||||
});
|
||||
|
||||
var ServerListItem = React.createClass({
|
||||
render: function(){
|
||||
return(
|
||||
|
||||
Reference in New Issue
Block a user