summaryrefslogtreecommitdiff
path: root/views/staff/_users_recent.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/staff/_users_recent.ejs')
-rw-r--r--views/staff/_users_recent.ejs6
1 files changed, 2 insertions, 4 deletions
diff --git a/views/staff/_users_recent.ejs b/views/staff/_users_recent.ejs
index e55fe28..b452c08 100644
--- a/views/staff/_users_recent.ejs
+++ b/views/staff/_users_recent.ejs
@@ -7,15 +7,13 @@
[[ users.forEach(function(user){ ]]
<tr>
<td>
- [[ if (user.photo) { ]]
- <a href="/staff/users/[[- user.username ]]"><div style="background-image:url([[- user.photo ]])" class="avatar"></div></a>
- [[ } ]]
+ <a href="/staff/users/[[- user.username ]]"><div style="background-image:url([[- user.photo || '/assets/img/profile.png' ]])" class="avatar"></div></a>
</td>
<td>
<a href="/staff/users/[[- user.username ]]">[[- user.username ]]</a>
</td>
<td class="editLinks">
- <a href="/staff/users/[[- user.username ]]">[view profile]</a>
+ <a href="/profile/[[- user.username ]]">[view profile]</a>
</td>
<td>
[[- user.displayName ]]