summaryrefslogtreecommitdiffstats
path: root/client/components/users/userHeader.jade
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-05-30 15:50:48 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-05-30 15:50:48 +0200
commitf4c80d1315c181300bd37ef5de98c365325bc130 (patch)
tree811dd0a9bba9bbe49d7e4c360719e72899574783 /client/components/users/userHeader.jade
parent6db01bb3c7bbcf3e5451dd828d3d0932eb5efec3 (diff)
downloadwekan-f4c80d1315c181300bd37ef5de98c365325bc130.tar.gz
wekan-f4c80d1315c181300bd37ef5de98c365325bc130.tar.bz2
wekan-f4c80d1315c181300bd37ef5de98c365325bc130.zip
Implement presence indicators
Diffstat (limited to 'client/components/users/userHeader.jade')
-rw-r--r--client/components/users/userHeader.jade27
1 files changed, 27 insertions, 0 deletions
diff --git a/client/components/users/userHeader.jade b/client/components/users/userHeader.jade
new file mode 100644
index 00000000..eb3d265c
--- /dev/null
+++ b/client/components/users/userHeader.jade
@@ -0,0 +1,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