diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-04-04 21:56:52 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-04-04 21:56:52 +0200 |
| commit | 3d8bf4ef32eb24fc2e9732ab806cbf7914c0a709 (patch) | |
| tree | fce7dc90894ef63d48259e97b3c72a2b2283f3fc /public/assets/js/lib/views/users/users.js | |
| parent | 1c3fcbe92324791abe26238bf4eba351176a8bcb (diff) | |
userlist. adding avatars
Diffstat (limited to 'public/assets/js/lib/views/users/users.js')
| -rw-r--r-- | public/assets/js/lib/views/users/users.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/public/assets/js/lib/views/users/users.js b/public/assets/js/lib/views/users/users.js index a45123d..d512e9a 100644 --- a/public/assets/js/lib/views/users/users.js +++ b/public/assets/js/lib/views/users/users.js @@ -54,6 +54,7 @@ var UsersView = View.extend({ var commentCount = stats.comments ? hush_null(stats.comments, 'c') : ['',''] var firstseen_datetime = verbose_date(user.firstseen) var lastseen = get_age(user.lastseen) + var avatar = user.avatar var t = this.template .replace(/{{username}}/g, sanitizeHTML(user.username)) .replace(/{{id}}/g, user.id) @@ -81,6 +82,9 @@ var UsersView = View.extend({ if (!user.firstseen) { $t.find('.date').html('') } + if (!user.avatar) { + $t.find('.avatar').addClass('hidden') + } this.$el.append($t) }) $("body").removeClass('loading') |
