diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-06-10 17:10:32 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-06-10 17:10:32 +0200 |
commit | 765b0168eaaeb28550dfb698de0b6cec9f9c2113 (patch) | |
tree | e9e7c6545e35042e3086262684a8128e95f5666f /client/components/sidebar/sidebar.jade | |
parent | 0b6c229b6cec2329752013393e83ebd122e3d2eb (diff) | |
download | wekan-765b0168eaaeb28550dfb698de0b6cec9f9c2113.tar.gz wekan-765b0168eaaeb28550dfb698de0b6cec9f9c2113.tar.bz2 wekan-765b0168eaaeb28550dfb698de0b6cec9f9c2113.zip |
(Re-)implement default avatar using user initials
We use a embedded svg to scale the initials text to its container
size. The user is free to overwrite its initials in the profile form.
Diffstat (limited to 'client/components/sidebar/sidebar.jade')
-rw-r--r-- | client/components/sidebar/sidebar.jade | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/client/components/sidebar/sidebar.jade b/client/components/sidebar/sidebar.jade index 303ce352..9f014136 100644 --- a/client/components/sidebar/sidebar.jade +++ b/client/components/sidebar/sidebar.jade @@ -47,13 +47,15 @@ template(name="labelsWidget") i.fa.fa-plus template(name="memberPopup") - .board-member-menu: .mini-profile-info - +userAvatar(user=user) - .info - h3.bottom - .js-profile - = user.profile.name - p.quiet.bottom @#{user.username} + .board-member-menu + .miniprofile-header + +userAvatar(userId=user._id) + .info + h3.bottom + .js-profile + = user.profile.name + p.quiet.bottom @#{user.username} + if currentUser.isBoardMember ul.pop-over-list li |