anchor.diff:  					b #{text}
   				else
   					| #{text}
  +
  +
  +mixin main()
  +	div.navbar.navbar-default.navbar-static-top(role='navigation')
  +		div.container
  +			div.navbar-header
  +				button.navbar-toggle(type='button',data-toggle='collapse',data-target='.navbar-collapse')
  +					span.sr-only Toggle navigation
  +					span.icon-bar
  +					span.icon-bar
  +					span.icon-bar
  +				a.navbar-brand(href='/') uonline
  +			div.navbar-collapse.collapse
  +				ul.nav.navbar-nav
  +					+instanceLink('about','/about/','Об игре')
  +				ul.nav.navbar-nav.navbar-right
  +					if user.loggedIn === true
  +						+instanceLink('account', '/account/', user.username, false, 'glyphicon-credit-card')
  +						if characters.length === 1
  +							if !!character
  +								+instanceLink('mycharacter', '/character/', character.name, false, 'glyphicon-user')
  +							else
  +								//- персонаж не выбран
  +						if characters.length > 1
  +							li.dropdown.instance-indicator(data-instance='mycharacter', class=(instance=='mycharacter'?'active':''))
  +								a.dropdown-toggle(href='/character/', data-toggle='dropdown')
  +									if !!character
  +										i.glyphicon.glyphicon-user
  +										| #{' '}#{character.name}
  +									else
  +										| Персонаж не выбран
  +									b.caret
  +								ul.dropdown-menu
  +									if !!character
  +										li
  +											a.pjax.instance-switcher(href='/character/', data-instance='mycharacter')
  +												| Профиль
  +										li.divider
  +									li.dropdown-header
  +										| Переключить персонажа
  +									each x in characters
  +										if character && x.id == character.id
  +											li.disabled
  +												a(style='cursor:initial;')
  +													i.glyphicon.glyphicon-menu-right
  +													| #{' '}#{x.name}
  +										else
  +											li
  +												a(href='/action/switchCharacter/'+x.id)
  +													| #{x.name}
  +						+instanceLink('game', '/game/', 'Игра', true)
  +						+instanceLink('inventory', '/inventory/', 'Инвентарь')
  +						li
  +							a(href='/action/logout') Выйти
  +					else
  +						+instanceLink('login', '/login/', 'Вход', false, 'glyphicon-chevron-right')
  +						+instanceLink('register', '/register/', 'Регистрация')
  +	div.container
  +		div.row
  +			div.col-md-12
  +				block content
  +		div.row
  +			div.col-md-12
  +				hr
  +				footer
  +					p.text-muted &copy; m1kc и К<sup>о</sup>, 2012&ndash;#{ now.getFullYear() }
  +
   
   if !pjax
   	doctype html
  
positive.code: else
  	title
  		block title
  	block content
  
negative.code: 			script(src='https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js')
  			<![endif]-->
  		body
  			div#content
  				+main()
  
  			//- Styles
  			link(href='/static/bower_components/bootstrap/dist/css/bootstrap.min.css', rel='stylesheet')
  