Revision d9a2ebac
Added by Ohad Levy almost 12 years ago
- ID d9a2ebac6e9ec0082e60265b794f54a29a1f7e65
app/views/models/index.html.erb | ||
---|---|---|
<td><%=link_to_if_authorized h(model.name), hash_for_edit_model_path(:id => model)%></td>
|
||
<td><%=h(model.vendor_class)%></td>
|
||
<td><%=h(model.hardware_model)%></td>
|
||
<td class="ra"><%= link_to_if model.hosts.any?, model.hosts.count, hosts_path(:search=>"model = \"#{model.name}\"") %></td>
|
||
<td class="ra"><%= link_to @counter[model.id] || 0, hosts_path(:search => "model = \"#{model}\"") %></td>
|
||
<td class="ra">
|
||
<%= display_delete_if_authorized hash_for_model_path(:id => model), :confirm => "Delete #{model.name}?" %>
|
||
</td>
|
Also available in: Unified diff
[SQL optimizations] - many small optimizations
This is one of a few patches aim to improve Foreman performance