From 4e5f0614f6389d536498c15fc1e3be6bb224c9bf Mon Sep 17 00:00:00 2001 From: Lekhika Dugtal Date: Mon, 18 Mar 2019 15:43:31 +0530 Subject: [PATCH] html cards for people section --- app/views/users/list.html.erb | 64 +++++++++++++++-------------------- 1 file changed, 28 insertions(+), 36 deletions(-) diff --git a/app/views/users/list.html.erb b/app/views/users/list.html.erb index c8e5e4a3bf2..4e4196060a6 100644 --- a/app/views/users/list.html.erb +++ b/app/views/users/list.html.erb @@ -13,44 +13,36 @@

<%= raw t('users.list.members_last_activity') %>

<%= render :partial => "map/peopleLeaflet" , locals: {people: true , lat:23 , lon: 4} %> - - - - - - - - - - <% if current_user && (current_user.role == "admin" || current_user.role == "moderator") %> - - <% end %> - +
<% @users.each do |user| %> -
- - - - - - <% if current_user && (current_user.role == "admin" || current_user.role == "moderator") %> - <% end %> - - <% end %> -
<%= t('users.list.username') %> <%= t('users.list.last_activity') %> <%= t('users.list.history') %> <%= t('users.list.joined') %> <%= t('users.list.moderation') %>
- - - <%= 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 user.status == 0 %> - <%= t('users.list.banned') %> - <% elsif user.status == 1 %> - <%= t('users.list.ban') %> - <% end %> -
+
<%= will_paginate @users, :renderer => BootstrapPagination::Rails unless @unpaginated %>