Project

General

Profile

Download (796 Bytes) Statistics
| Branch: | Tag: | Revision:
<% title "Domains" %>

<% title_actions display_link_if_authorized("New Domain", hash_for_new_domain_path), help_path %>

<table class="table table-bordered table-striped">
<tr>
<th><%= sort :name %></th>
<th>Hosts</th>
<th></th>
</tr>
<% for domain in @domains %>
<tr class="<%= cycle("even", "odd") -%>">
<td><%= link_to_if_authorized h(domain.fullname.empty? ? domain.name : domain.fullname), hash_for_edit_domain_path(:id => domain.name)%></td>
<td><%= link_to @counter[domain.id] || 0, hosts_path(:search => "domain = #{domain}") %>
<td><%= display_delete_if_authorized hash_for_domain_path(:id => domain), :confirm => "Delete #{domain.name}?" %></td>
</tr>
<% end %>
</table>
<%= page_entries_info @domains %>
<%= will_paginate @domains %>
(3-3/5)