WIP display of avatars.
This commit is contained in:
parent
db6517158f
commit
0aadf3f203
@ -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!
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user