(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.
This commit is contained in:
Maxime Quandalle 2015-06-10 17:10:32 +02:00
parent 0b6c229b6c
commit 765b0168ea
6 changed files with 91 additions and 43 deletions

View file

@ -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