Revision acfbc458
Added by Marek Hulán about 10 years ago
app/views/config_templates/index.html.erb | ||
---|---|---|
</tr>
|
||
<% for config_template in @config_templates %>
|
||
<tr>
|
||
<td><%= link_to_if_authorized h(config_template), hash_for_edit_config_template_path(:id => config_template.to_param) %></td>
|
||
<td><%= link_to_if_authorized h(config_template), hash_for_edit_config_template_path(:id => config_template.to_param).merge(:auth_object => config_template, :authorizer => authorizer, :permission => 'edit_templates') %></td>
|
||
<td><%= combination config_template %></td>
|
||
<td><%= config_template.try(:template_kind) %></td>
|
||
<td><%= checked_icon config_template.snippet %></td>
|
||
<td><%= display_delete_if_authorized hash_for_config_template_path(:id => config_template.to_param),
|
||
<td><%= display_delete_if_authorized hash_for_config_template_path(:id => config_template.to_param).merge(:auth_object => config_template, :authorizer => authorizer, :permission => 'destroy_templates'),
|
||
:confirm => _("Delete %s?") % config_template %> </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: