summaryrefslogtreecommitdiffstats
path: root/client/components/sidebar
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-06-10 17:10:32 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-06-10 17:10:32 +0200
commit765b0168eaaeb28550dfb698de0b6cec9f9c2113 (patch)
treee9e7c6545e35042e3086262684a8128e95f5666f /client/components/sidebar
parent0b6c229b6cec2329752013393e83ebd122e3d2eb (diff)
downloadwekan-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')
-rw-r--r--client/components/sidebar/sidebar.jade16
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