show info of hidden users in admin/organizations

This commit is contained in:
Juanjo Bazán
2015-09-08 18:06:23 +02:00
parent 541563a3eb
commit 6bf8af3526
5 changed files with 28 additions and 1 deletions

View File

@@ -18,7 +18,9 @@
<h3><%= page_entries_info @organizations %></h3>
<table>
<% hidden = 0 %>
<% @organizations.each do |organization| %>
<% hidden += 1 and next if organization.user.nil? || organization.user.hidden? %>
<tr id="<%= dom_id(organization) %>">
<td><%= organization.name %></td>
<td><%= organization.email %></td>
@@ -54,4 +56,6 @@
<% end %>
</table>
<%= t("admin.organizations.index.hidden_count", count: hidden) if hidden > 0 %>
<%= paginate @organizations %>