users: let mods see users' last login time.

This commit is contained in:
evazion
2020-12-21 22:40:48 -06:00
parent 3c4781f6d8
commit fbb4cfb807
3 changed files with 16 additions and 0 deletions

View File

@@ -11,6 +11,13 @@
<td><%= presenter.join_date %></td>
</tr>
<% if policy(User).can_see_last_logged_in_at? %>
<tr>
<th>Last Seen</th>
<td><%= time_ago_in_words_tagged(user.last_logged_in_at) %></td>
</tr>
<% end %>
<% if policy(IpAddress).show? %>
<tr>
<th>Last IP</th>