Project

General

Profile

« Previous | Next » 

Revision 40279862

Added by Ori Rabin over 9 years ago

Fixes #8830 - Allow two-pane to work on show

View differences:

app/views/lookup_keys/index.html.erb
<tbody>
<% @lookup_keys.each do |lookup_key| %>
<tr>
<td><%= link_to_if_authorized trunc(lookup_key.key), hash_for_edit_lookup_key_path(:id => lookup_key).merge(:auth_object => lookup_key, :permission => 'edit_external_variables', :authorizer => authorizer) %></td>
<td class="display-two-pane"><%= link_to_if_authorized trunc(lookup_key.key), hash_for_edit_lookup_key_path(:id => lookup_key).merge(:auth_object => lookup_key, :permission => 'edit_external_variables', :authorizer => authorizer) %></td>
<% puppet_class = lookup_key.param_class %>
<td><%= link_to_if_authorized trunc(puppet_class), hash_for_edit_puppetclass_path(:id => puppet_class).merge(:auth_object => puppet_class, :authorizer => @puppetclass_authorizer) if puppet_class %></td>
<td class="display-two-pane"><%= link_to_if_authorized trunc(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),
:confirm => _("Delete %s?") % lookup_key.key %></td>

Also available in: Unified diff