diff --git a/app/views/map/_peopleLeaflet.html.erb b/app/views/map/_peopleLeaflet.html.erb index 1b730448e38..ea1b8d14421 100644 --- a/app/views/map/_peopleLeaflet.html.erb +++ b/app/views/map/_peopleLeaflet.html.erb @@ -2,7 +2,7 @@ <% unique_id = rand(1000) %>
<%= t('users.list.admins_ban_spam') %>
+<% end %> ++ Sort by: + <%= t('users.list.username') %> | + <%= t('users.list.last_activity') %> | + <%= t('users.list.joined') %> | + +
+This page shows a list of all Public Lab contributors and is sorted by those who have posted most recently. Click the profile link to view their posting activity.
-<%= t('users.list.admins_ban_spam') %>
- <% end %> -- - | <%= t('users.list.username') %> | -<%= t('users.list.last_activity') %> | -<%= t('users.list.history') %> | -<%= t('users.list.joined') %> | - - <% if logged_in_as(['admin', 'moderator']) %> -<%= t('users.list.moderation') %> | - <% end %> -
---|---|---|---|---|---|
- |
-
-
-
+
- <%= user.username %>
-
+
+
+
+
+ +
+ <%= user.username %>
+
+
+
+ <% if current_user && (current_user.role == "admin" || current_user.role == "moderator") %>
+ Last Activity : <%= t = user.revisions.order(timestamp: :desc).first.try(:created_at);time_ago_in_words(t) if (t) %>
+ History : <%= user.nodes.count %> <%= t('users.list.notes_and_edits') %>
+ Joined : <%= distance_of_time_in_words(user.created_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %>
+
+ <% if user.status == 0 %>
+ <%= t('users.list.banned') %>
+ <% elsif user.status == 1 %>
+ <%= t('users.list.ban') %>
+ <% end %>
+
+ <% end %>
+ |
- <%= t = user.revisions.order(timestamp: :desc).first.try(:created_at);time_ago_in_words(t) if (t) %> | -<%= user.nodes.count %> <%= t('users.list.notes_and_edits') %> | -<%= distance_of_time_in_words(user.created_at, Time.current, { include_seconds: false, scope: 'datetime.time_ago_in_words' }) %> | - <% if logged_in_as(['admin', 'moderator']) %> -- <% if user.status == 0 %> - <%= t('users.list.banned') %> - <% elsif user.status == 1 %> - <%= t('users.list.ban') %> - <% end %> - | <% end %> -