|
2 | 2 | <%= Organization.model_name.human(count: :many) %> |
3 | 3 | </h1> |
4 | 4 |
|
5 | | -<ul class="nav navbar-nav pull-right"> |
6 | | - <% if superadmin? %> |
7 | | - <li> |
8 | | - <%= link_to new_organization_path do %> |
9 | | - <%= glyph :plus %> |
10 | | - <%= t 'global.add_new' %> |
11 | | - <% end %> |
12 | | - </li> |
13 | | - <% end %> |
14 | | -</ul> |
15 | | - |
16 | | -<table class="table table-hover table-condensed"> |
17 | | - <thead> |
18 | | - <tr> |
19 | | - <th><%= Organization.model_name.human(count: :one) %></th> |
20 | | - <th><%= t '.member_count' %></th> |
21 | | - <th></th> |
22 | | - </tr> |
23 | | - </thead> |
24 | | - <tbody> |
25 | | - <% @organizations.each do |org| %> |
26 | | - <tr> |
27 | | - <td><%= link_to org.name, org %></td> |
28 | | - <td><%= org.users.count %></td> |
29 | | - <td> |
30 | | - <% if current_user&.admins?(org) %> |
31 | | - <%= link_to edit_organization_path(org), class: 'action' do %> |
32 | | - <%= glyph :pencil %> |
33 | | - <%= t 'global.edit' %> |
34 | | - <% end %> |
35 | | - <% end %> |
36 | | - </td> |
37 | | - </tr> |
38 | | - <% end %> |
39 | | - </tbody> |
40 | | -</table> |
41 | | - |
42 | | -<%= paginate @organizations %> |
| 5 | +<div class="panel panel-default table-responsive"> |
| 6 | + <div class="panel-body"> |
| 7 | + <table class="table table-hover table-condensed panel"> |
| 8 | + <thead> |
| 9 | + <tr> |
| 10 | + <th></th> |
| 11 | + <th><%= t '.city' %></th> |
| 12 | + <th><%= t '.neighborhood' %></th> |
| 13 | + <th><%= t '.web' %></th> |
| 14 | + <th><%= t '.member_count' %></th> |
| 15 | + </tr> |
| 16 | + </thead> |
| 17 | + <tbody> |
| 18 | + <% @organizations.each do |org| %> |
| 19 | + <tr> |
| 20 | + <td><%= link_to(org.name, org) %></td> |
| 21 | + <td><%= org.city %></td> |
| 22 | + <td><%= org.neighborhood %></td> |
| 23 | + <td><%= link_to(org.web, org.web) if org.web.present? %></td> |
| 24 | + <td><%= org.members.count %></td> |
| 25 | + </tr> |
| 26 | + <% end %> |
| 27 | + </tbody> |
| 28 | + </table> |
| 29 | + <div class="paginate-align"> |
| 30 | + <%= paginate @organizations %> |
| 31 | + </div> |
| 32 | + </div> |
| 33 | +</div> |
0 commit comments