Revision 82e47ae0
Added by Amos Benari about 12 years ago
- ID 82e47ae0f86994702c3a084cc6150250a81034ee
app/views/architectures/index.html.erb | ||
---|---|---|
<% title "Architectures" %>
|
||
<% title_actions display_link_if_authorized("New Architecture", hash_for_new_architecture_path), help_path %>
|
||
|
||
<table class="list">
|
||
<table class="table table-bordered table-striped">
|
||
<tr>
|
||
<th><%= sort :name %></th>
|
||
<th>Operatingsystems</th>
|
||
<th></th>
|
||
</tr>
|
||
<% for architecture in @architectures %>
|
||
<tr class="<%= cycle("even", "odd") -%>">
|
||
<tr>
|
||
<td><%= link_to_if_authorized(h(architecture.name), hash_for_edit_architecture_path(:id => architecture.name)) %></td>
|
||
<td><%=h architecture.operatingsystems.to_sentence %></td>
|
||
<td align="right">
|
||
<%= display_link_if_authorized "Delete", hash_for_architecture_path(:id => architecture.name, :auth_action => :destroy), :confirm => "Delete #{architecture.name}?", :method => :delete %>
|
||
<%= display_delete_if_authorized hash_for_architecture_path(:id => architecture.name), :confirm => "Delete #{architecture.name}?" %>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
Also available in: Unified diff
updates UI to bootstrap v2