Project

General

Profile

« Previous | Next » 

Revision 82e47ae0

Added by Amos Benari about 12 years ago

  • ID 82e47ae0f86994702c3a084cc6150250a81034ee

updates UI to bootstrap v2

View differences:

app/views/domains/index.html.erb
<% title_actions display_link_if_authorized("New Domain", hash_for_new_domain_path), help_path %>
<table class="list">
<table class="table table-bordered table-striped">
<tr>
<th><%= sort :name %></th>
<th>Hosts</th>
<th class="ra"></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_if domain.hosts.any?, domain.hosts.size, hosts_path(:search => "domain = #{domain}") %>
<td class="ra"> <%= display_link_if_authorized "Delete", hash_for_domain_path(:id => domain, :auth_action => :destroy), :confirm => "Delete #{domain.name}?", :method => :delete %></td>
<td><%= display_delete_if_authorized hash_for_domain_path(:id => domain), :confirm => "Delete #{domain.name}?" %></td>
</tr>
<% end %>
</table>

Also available in: Unified diff