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

@@ -32,6 +32,11 @@
<% t.column "Level" do |user| %>
<%= user.level_string %>
<% end %>
<% if policy(User).can_see_last_logged_in_at? %>
<% t.column "Last Seen" do |user| %>
<%= time_ago_in_words_tagged(user.last_logged_in_at) %>
<% end %>
<% end %>
<% t.column "Joined" do |user| %>
<%= compact_time user.created_at %>
<% end %>