Revision acfbc458
Added by Marek Hulán about 10 years ago
app/views/common_parameters/index.html.erb | ||
---|---|---|
</tr>
|
||
<% for common_parameter in @common_parameters %>
|
||
<tr>
|
||
<td><%= link_to_if_authorized h(common_parameter), hash_for_edit_common_parameter_path(:id => common_parameter.id)%></td>
|
||
<td><%= link_to_if_authorized h(common_parameter), hash_for_edit_common_parameter_path(:id => common_parameter.id).merge(:auth_object => common_parameter, :authorizer => authorizer, :permission => 'edit_globals') %></td>
|
||
<td style='overflow-wrap: break-word;'><%= trunc(common_parameter.value,80 ) %></td>
|
||
<td class="ra">
|
||
<%= display_delete_if_authorized hash_for_common_parameter_path(:id => common_parameter), :confirm => _("Delete %s?") % common_parameter.name %>
|
||
<%= display_delete_if_authorized hash_for_common_parameter_path(:id => common_parameter).merge(:auth_object => common_parameter, :authorizer => authorizer, :permission => 'destroy_globals'),
|
||
:confirm => _("Delete %s?") % common_parameter.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: