From 0aadf3f20335aa431ee7160686187ab414c50fbd Mon Sep 17 00:00:00 2001 From: Luka Vandervelden Date: Wed, 25 Dec 2019 01:43:11 +0100 Subject: [PATCH] WIP display of avatars. --- client/task.ls | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/client/task.ls b/client/task.ls index e9e548d..8f53124 100644 --- a/client/task.ls +++ b/client/task.ls @@ -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! ]