WIP display of avatars.

This commit is contained in:
Luka Vandervelden 2019-12-25 01:43:11 +01:00
parent db6517158f
commit 0aadf3f203

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
[
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!
]