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) ->
|
self.render-login = (uid) ->
|
||||||
h \p [
|
h \p [
|
||||||
if user = users-cache.get-user uid
|
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
|
'@' + user.login
|
||||||
|
]
|
||||||
else
|
else
|
||||||
'@' + uid.to-string!
|
'@' + uid.to-string!
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user