mirror of
https://github.com/wekan/wekan.git
synced 2025-12-26 12:18:49 +01:00
The user is now able to upload an avatar, and pick one in a list. This functionality should eventually be abstracted in a community package but we still need to work on a great public API. We rely on collectionFS to manage uploaded avatars. We also removed bengott:avatar which was trying to solve the wrong problem (namely displaying the avatar, which is as simple as displaying an image), and not a avatar system as it should be. Gravatar support is coming (back) soon. We may also want to have a list of default fun avatars the user can choose instead of uploading its own one.
46 lines
1.3 KiB
Text
46 lines
1.3 KiB
Text
template(name="headerUserBar")
|
|
#header-user-bar
|
|
a.header-user-bar-name.js-open-header-member-menu
|
|
i.fa.fa-chevron-down
|
|
if currentUser.profile.name
|
|
= currentUser.profile.name
|
|
else
|
|
= currentUser.username
|
|
a.header-user-bar-avatar.js-change-avatar
|
|
+userAvatar(userId=currentUser._id)
|
|
|
|
template(name="memberMenuPopup")
|
|
ul.pop-over-list
|
|
with currentUser
|
|
li: a.js-edit-profile Edit Profile…
|
|
li: a.js-change-avatar Change Avatar…
|
|
li: a.js-change-password Change Password…
|
|
li: a.js-change-language Change Language…
|
|
hr
|
|
ul.pop-over-list
|
|
li: a.js-logout {{_ 'log-out'}}
|
|
|
|
template(name="editProfilePopup")
|
|
form
|
|
label
|
|
| {{_ "fullname"}}
|
|
input.js-profile-fullname(type="text" value=profile.name autofocus)
|
|
label
|
|
| {{_ "username"}}
|
|
input.js-profile-username(type="text" value=username)
|
|
label
|
|
| Initials
|
|
input.js-profile-initials(type="text" value=profile.initials)
|
|
input.primary.wide(type="submit" value="{{_ 'save'}}")
|
|
|
|
template(name="changePasswordPopup")
|
|
+atForm(state='changePwd')
|
|
|
|
template(name="changeLanguagePopup")
|
|
ul.pop-over-list
|
|
each languages
|
|
li(class="{{# if isCurrentLanguage}}active{{/if}}")
|
|
a.js-set-language
|
|
= name
|
|
if isCurrentLanguage
|
|
i.fa.fa-check
|