summaryrefslogtreecommitdiffstats
path: root/client/components/users/userHeader.jade
blob: eb3d265ca7d3ffeafcdc43a926ce03bffdfcb32a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
template(name="headerUserBar")
  a#header-user-bar.js-open-header-member-menu
    .header-user-bar-name
      i.fa.fa-chevron-down
      if currentUser.profile.name
        = currentUser.profile.name
      else
        = currentUser.username
    +userAvatar(user=currentUser)

template(name="memberMenuPopup")
  ul.pop-over-list
    li: a(href="{{pathFor route='Profile' username=currentUser.username}}") {{_ 'profile'}}
    li: a.js-language {{_ 'language'}}
    li: a(href = "{{pathFor route='Settings'}}") {{_ 'settings'}}
  hr
  ul.pop-over-list
    li: a.js-logout {{_ 'log-out'}}

template(name="setLanguagePopup")
  ul.pop-over-list
    each languages
      li(class="{{# if isCurrentLanguage}}active{{/if}}")
        a.js-set-language
          = name
          if isCurrentLanguage
            i.fa.fa-check