Revision acfbc458
Added by Marek Hulán about 10 years ago
app/views/models/index.html.erb | ||
---|---|---|
</tr>
|
||
<% for model in @models %>
|
||
<tr>
|
||
<td><%=link_to_if_authorized h(model.name), hash_for_edit_model_path(:id => model)%></td>
|
||
<td><%=link_to_if_authorized h(model.name), hash_for_edit_model_path(:id => model).merge(:auth_object => model, :authorizer => authorizer) %></td>
|
||
<td><%=h(model.vendor_class)%></td>
|
||
<td><%=h(model.hardware_model)%></td>
|
||
<td class="ra"><%= link_to @host_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 %s?") % model.name %>
|
||
<%= display_delete_if_authorized hash_for_model_path(:id => model).merge(:auth_object => model, :authorizer => authorizer),
|
||
:confirm => _("Delete %s?") % model.name %>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
Also available in: Unified diff
fixes #812 - new permissions model, user group role and nest support, role filters for better granularity
Contributions from: