summaryrefslogtreecommitdiffstats
path: root/client/components/users/userAvatar.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/userAvatar.jade
parent6db01bb3c7bbcf3e5451dd828d3d0932eb5efec3 (diff)
downloadwekan-f4c80d1315c181300bd37ef5de98c365325bc130.tar.gz
wekan-f4c80d1315c181300bd37ef5de98c365325bc130.tar.bz2
wekan-f4c80d1315c181300bd37ef5de98c365325bc130.zip
Implement presence indicators
Diffstat (limited to 'client/components/users/userAvatar.jade')
-rw-r--r--client/components/users/userAvatar.jade23
1 files changed, 23 insertions, 0 deletions
diff --git a/client/components/users/userAvatar.jade b/client/components/users/userAvatar.jade
new file mode 100644
index 00000000..a76c4617
--- /dev/null
+++ b/client/components/users/userAvatar.jade
@@ -0,0 +1,23 @@
+template(name="userAvatar")
+ .member(class="{{class}} {{# if draggable }}js-member{{else}}js-member-on-card-menu{{/if}}"
+ title="{{userData.profile.name}} ({{userData.username}})")
+ +avatar(user=userData size=size)
+ if showStatus
+ span.member-presence-status(class=presenceStatusClassName)
+ span.member-type(class=memberType)
+
+
+template(name="userPopup")
+ .board-member-menu
+ .mini-profile-info
+ +userAvatar(user=user)
+ .info
+ h3.bottom
+ a.js-profile(href="{{ pathFor route='Profile' username=user.username }}")= user.profile.name
+ p.quiet.bottom @{{ user.username }}
+
+template(name="memberName")
+ a.inline-object.js-show-mem-menu(href="{{ pathFor route='Profile' username=user.username }}")
+ = user.profile.name
+ if username
+ | ({{ user.username }})