Web interface: обновление Navbar
This commit is contained in:
@@ -3,6 +3,12 @@ const nbsp = '\u00a0';
|
||||
|
||||
// -- Bootstrap -- //
|
||||
|
||||
var MainMenuItem = React.createClass({
|
||||
render: function(){return(
|
||||
ce('li', null, ce('a', {href: this.props.href}, this.props.title))
|
||||
)}
|
||||
});
|
||||
|
||||
var Navbar = React.createClass({
|
||||
render: function(){return(
|
||||
ce('nav', {className: 'navbar navbar-default navbar-fixed-top'},
|
||||
@@ -19,12 +25,10 @@ var Navbar = React.createClass({
|
||||
ce('span', {className: 'icon-bar'}),
|
||||
ce('span', {className: 'icon-bar'})
|
||||
),
|
||||
ce('a', {className: 'navbar-brand', href: '#'}, 'ASys')
|
||||
ce('a', {className: 'navbar-brand', href: '#'}, ce('b', null, 'ASys'), '://')
|
||||
),
|
||||
ce('div', {className: 'collapse navbar-collapse', id: 'bs-example-navbar-collapse-1'},
|
||||
ce('ul', {className: 'nav navbar-nav'},
|
||||
ce('li', {className: 'active'}, ce('a', {href: '#'}, 'Модули'))
|
||||
)
|
||||
ce('ul', {className: 'nav navbar-nav'}, this.props.items)
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -70,7 +74,7 @@ var Button = React.createClass({
|
||||
|
||||
var BundleTable = React.createClass({
|
||||
render: function(){return(
|
||||
ce('table', {className: 'table table-hover', width: '100%'},
|
||||
ce('table', {className: 'table table-hover', width: '100%', style: {'margin-bottom': '0'}},
|
||||
ce('thead', null,
|
||||
ce('tr', null,
|
||||
ce('th', {style: {'width':'2%'}}, '#'),
|
||||
|
||||
Reference in New Issue
Block a user