<% title _("Ansible Variables") %> <%= stylesheet 'foreman_ansible/foreman-ansible' %> <%= title_actions display_link_if_authorized(_('New Ansible Variable'), hash_for_new_ansible_variable_path, :class => "btn btn-default no-float"), documentation_button('#4.3Variables', :root_url => ansible_doc_url) %> <% @ansible_variables.each do |variable| %> <% end %>
<%= sort :name, :as => s_('Variable|Name') %> <%= sort :ansible_role, :as => s_('Variable|Role') %> <%= _('Type') %> <%= sort :imported, :as => _('Imported?') %> <%= _('Actions') %>
<%= link_to_if_authorized( icon_text((variable.override ? "flag": ""), variable.key.to_s, :kind => 'fa', :title => _('Overriden')), hash_for_edit_ansible_variable_path(:id => variable). merge(:auth_object => variable, :permission => 'edit_external_parameters', :authorizer => authorizer) ) %> <%= link_to_if_authorized( variable.ansible_role.name, hash_for_ansible_variables_path(:search => "ansible_role = #{variable.ansible_role}") ) %> <%= variable.key_type || 'string' %> <%= checked_icon variable.imported %> <% links = [ display_delete_if_authorized( hash_for_ansible_variable_path(:id => variable.id).merge( :auth_object => variable, :authorizer => authorizer), :data => { :confirm => _("Delete %s?") % variable.key }, :action => :delete) ] %> <%= action_buttons(*links) %>
<%= will_paginate_with_info @ansible_variables %>