Updates to userAvatar and cardDetails template

* enable userAvatar to work with member and assignee
* remove userAvatarAssignee template
This commit is contained in:
John R. Supplee 2021-04-06 17:50:03 +02:00
parent 5a6f84ce34
commit 03d29dd674
4 changed files with 29 additions and 164 deletions

View file

@ -1,5 +1,5 @@
template(name="userAvatar")
a.member.js-member(title="{{userData.profile.fullname}} ({{userData.username}}) {{_ memberType}}")
a.member(class="js-{{#if assignee}}assignee{{else}}member{{/if}}" title="{{userData.profile.fullname}} ({{userData.username}}) {{_ memberType}}")
if userData.profile.avatarUrl
img.avatar.avatar-image(src="{{userData.profile.avatarUrl}}")
else