mixin brand
  a.navbar-brand(ui-sref='labs')
    img(src="/static/img/logo.png")

mixin profile_menu
  li.dropdown
    a.link.dropdown-toggle(data-toggle='dropdown', role='button', aria-haspopup='true', aria-expanded='false')
      user-avatar(id='curUser.id')
      | &nbsp;
      user-display-name(id='curUser.id')
      i.fa.fa-fw.fa-angle-down
    ul.dropdown-menu
      li(ng-if='curUser.is_admin')
        a.link(ui-sref='admin')
          i.icon-settings
          | &nbsp;
          | Site Management
      li.divider(ng-if='curUser.is_admin')
      li
        a(href='/auth/logout')
          i.icon-logout
          | &nbsp;
          | Sign Out

mixin content
  nav.navbar.navbar-static-top.navbar-labsome
    .container-fluid
      .navbar-header
        button.navbar-toggle.collapsed(type='button', data-toggle='collapse', data-target='#labsome-navbar-collapse', aria-expanded='false')
          span.sr-only Toggle navigation
          span.icon-bar
          span.icon-bar
          span.icon-bar
        +brand
      #labsome-navbar-collapse.collapse.navbar-collapse
        div(ui-view='navbar')
        ul.nav.navbar-nav.navbar-right
          +profile_menu

+content

mixin brand
  a.navbar-brand(ui-sref='labs')
    img(src="/static/img/logo.png")

mixin profile_menu
  li.dropdown
    a.link.dropdown-toggle(data-toggle='dropdown', role='button', aria-haspopup='true', aria-expanded='false')
      user-avatar(id='curUser.id')
      | &nbsp;
      user-display-name(id='curUser.id')
      i.fa.fa-fw.fa-angle-down
    ul.dropdown-menu(style={left: '0', right: 'auto'})
      li(ng-if='curUser.is_admin')
        a.link(ui-sref='admin')
          i.icon-settings
          | &nbsp;
          | Site Management
      li.divider(ng-if='curUser.is_admin')
      li
        a(href='/auth/logout')
          i.icon-logout
          | &nbsp;
          | Sign Out

mixin content
  nav.navbar.navbar-static-top.navbar-labsome
    .container-fluid
      .navbar-header
        button.navbar-toggle.collapsed(type='button', data-toggle='collapse', data-target='#labsome-navbar-collapse', aria-expanded='false')
          span.sr-only Toggle navigation
          span.icon-bar
          span.icon-bar
          span.icon-bar
        +brand
      #labsome-navbar-collapse.collapse.navbar-collapse
        div(ui-view='navbar')
        ul.nav.navbar-nav.navbar-right
          +profile_menu

+content

Fix user menu to stick to the left
Fix user menu to stick to the left
