Web interface: еще немного стилистики для Navbar
This commit is contained in:
@@ -4,9 +4,19 @@ const nbsp = '\u00a0';
|
||||
// -- Bootstrap -- //
|
||||
|
||||
var MainMenuItem = React.createClass({
|
||||
render: function(){return(
|
||||
ce('li', null, ce('a', {href: this.props.href}, this.props.title))
|
||||
)}
|
||||
render: function(){
|
||||
var liActive = {}
|
||||
var aText = this.props.title
|
||||
|
||||
if (this.props.active) {
|
||||
liActive = {className: 'active'};
|
||||
aText = [ce('span', {className: 'glyphicon glyphicon-menu-right'}), ' ', this.props.title];
|
||||
}
|
||||
|
||||
return(
|
||||
ce('li', liActive, ce('a', {href: this.props.href}, aText))
|
||||
)
|
||||
}
|
||||
});
|
||||
|
||||
var Navbar = React.createClass({
|
||||
|
||||
Reference in New Issue
Block a user