Project

General

Profile

Download (943 Bytes) Statistics
| Branch: | Tag: | Revision:
93117958 Bryan Kearney
<% title _("Domains") %>
c2ba4ed3 Ohad Levy
93117958 Bryan Kearney
<% title_actions display_link_if_authorized(_("New Domain"), hash_for_new_domain_path), help_path %>
cdf02336 Ohad Levy
22a48ce1 Amos Benari
<table class="table table-bordered table-striped table-two-pane">
c2ba4ed3 Ohad Levy
<tr>
74e0b0e3 Lukas Zapletal
<th><%= sort :name, :as => s_("Domain|Fullname") %></th>
93117958 Bryan Kearney
<th><%= _("Hosts") %></th>
82e47ae0 Amos Benari
<th></th>
c2ba4ed3 Ohad Levy
</tr>
<% for domain in @domains %>
29972d83 Amos Benari
<tr>
acfbc458 Marek Hulan
<td><%= link_to_if_authorized h(domain.fullname.empty? ? domain.name : domain.fullname), hash_for_edit_domain_path(:id => domain).merge(:auth_object => domain, :authorizer => authorizer) %></td>
f9bc5a8e Daniel Lobato
<td><%= link_to @host_counter[domain.id] || 0, hosts_path(:search => "domain = #{domain}") %>
acfbc458 Marek Hulan
<td><%= display_delete_if_authorized hash_for_domain_path(:id => domain).merge(:auth_object => domain, :authorizer => authorizer), :confirm => _("Delete %s?") % domain.name %></td>
c2ba4ed3 Ohad Levy
</tr>
<% end %>
</table>
d995ecb4 Paul Kelly
<%= page_entries_info @domains %>
<%= will_paginate @domains %>