Project

General

Profile

Download (793 Bytes) Statistics
| Branch: | Tag: | Revision:
<% title "Smart variables" %>

<table class="table table-bordered table-striped">
<tr>
<th><%= sort :key, :as => "Variable" %></th>
<th><%= sort :puppetclass %></th>
<th>Number of Values</th>
<th></th>
</tr>

<% @lookup_keys.each do |lookup_key| %>
<tr class="<%= cycle("even", "odd") -%>">
<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_delete_if_authorized hash_for_lookup_key_path(:id => lookup_key), :confirm => "Delete #{lookup_key.key}?" %></td>
</tr>
<% end %>
</table>
(4-4/4)