WIP display of avatars.

dev
Luka Vandervelden 2019-12-25 01:43:11 +01:00
parent db6517158f
commit 0aadf3f203
1 changed files with 11 additions and 1 deletions

View File

@ -15,7 +15,17 @@ Task = (self, project, todod-ws, users-cache) ->
self.render-login = (uid) ->
h \p [
if user = users-cache.get-user uid
'@' + user.login
[
if avatar = user.profile?.avatar
h \figure.image.is-32x32.is-pulled-left [
h \img.is-rounded {
src=avatar
alt=""
}
]
'@' + user.login
]
else
'@' + uid.to-string!
]