Project

General

Profile

« Previous | Next » 

Revision 8076e753

Added by Ondřej Pražák over 8 years ago

Fixes #11693 - removed 'destroy' for smart class parameter from API controllers

View differences:

app/views/puppetclass_lookup_keys/index.html.erb
<th><%= sort :key, :as => _("Parameter") %></th>
<th><%= sort :puppetclass, :as => _("Puppetclass") %></th>
<th><%= sort :values_count, :as => _('Number of values'), :default => "DESC" %></th>
<th></th>
</tr>
</thead>
<tbody>
......
<% puppet_class = lookup_key.param_class %>
<td><%= link_to_if_authorized trunc_with_tooltip(puppet_class), hash_for_edit_puppetclass_path(:id => puppet_class).merge(:auth_object => puppet_class, :authorizer => @puppetclass_authorizer) if puppet_class %></td>
<td><%=h lookup_key.lookup_values_count %></td>
<td><%= display_delete_if_authorized hash_for_lookup_key_path(:id => lookup_key).merge(:auth_object => lookup_key, :permission => 'destroy_external_variables', :authorizer => authorizer),
:data => { :confirm => _("Delete %s?") % lookup_key.key } %></td>
</tr>
<% end %>
</tbody>

Also available in: Unified diff