Revision 82e47ae0
Added by Amos Benari about 12 years ago
- ID 82e47ae0f86994702c3a084cc6150250a81034ee
app/views/lookup_keys/index.html.erb | ||
---|---|---|
<% title "Smart variables" %>
|
||
|
||
<table class="list">
|
||
<table class="table table-bordered table-striped">
|
||
<tr>
|
||
<th><%= sort :key, :as => "Variable" %></th>
|
||
<th><%= sort :puppetclass %></th>
|
||
... | ... | |
<td><%= link_to_if_authorized h(lookup_key.key), hash_for_edit_lookup_key_path(:id => lookup_key) %></td>
|
||
<td><%= link_to_if_authorized h(lookup_key.puppetclass), hash_for_edit_puppetclass_path(:id => lookup_key.puppetclass) if lookup_key.puppetclass %></td>
|
||
<td><%=h lookup_key.lookup_values.count %></td>
|
||
<td><%= display_link_if_authorized 'Delete', hash_for_lookup_key_path(:id => lookup_key, :auth_action => :destroy), :confirm => "Delete #{lookup_key.key}?", :method => :delete %></td>
|
||
<td><%= display_delete_if_authorized hash_for_lookup_key_path(:id => lookup_key), :confirm => "Delete #{lookup_key.key}?" %></td>
|
||
</tr>
|
||
<% end %>
|
||
</table>
|
Also available in: Unified diff
updates UI to bootstrap v2