.g-user-text
  if (user)
    a(data-toggle="dropdown", data-target="#g-user-action-menu")
      | #{user.get('firstName')} #{user.get('lastName')}
      i.icon-down-open
    #g-user-action-menu.dropdown
      ul.dropdown-menu(role="menu")
        li(role="presentation")
          a.g-my-folders
            i.icon-folder
            | My folders
        li(role="presentation")
          a.g-my-settings
            i.icon-cog
            | My account
        li(role="presentation")
          a.g-my-groups
            i.icon-users
            | My groups
        if (user.get('admin'))
          li(role="presentation")
            a.g-admin
              i.icon-wrench
              | Admin console
        li.divider(role="presentation")
        li(role="presentation")
          a.g-logout
            i.icon-logout
            | Log out
  else
    a.g-register Register
    |  or
    a.g-login  Log In
      i.icon-login
