-
Notifications
You must be signed in to change notification settings - Fork 979
/
index.html.erb
23 lines (22 loc) · 926 Bytes
/
index.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<% title _('Realms') %>
<% title_actions(display_link_if_authorized(_("New Realm"), hash_for_new_realm_path),
documentation_button('4.3.8Realm')) %>
<table class="table table-bordered table-striped table-two-pane">
<thead>
<tr>
<th><%= sort :name, :as => s_("Realm|Name") %></th>
<th><%= sort :hosts_count, :as => _("Hosts"), :default => 'DESC' %></th>
<th></th>
</tr>
</thead>
<tbody>
<% for realm in @realms %>
<tr>
<td class="display-two-pane"><%= link_to_if_authorized trunc_with_tooltip(realm.name), hash_for_edit_realm_path(:id => realm)%></td>
<td><%= link_to realm.hosts_count, hosts_path(:search => "realm = #{realm}") %>
<td><%= display_delete_if_authorized hash_for_realm_path(:id => realm), :data => { :confirm => _("Delete %s?") % realm.name } %></td>
</tr>
<% end %>
</tbody>
</table>
<%= will_paginate_with_info @realms %>