% 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('Managing_Configurations_Ansible', type: 'docs', chapter: 'Importing_Ansible_Roles_and_Variables_ansible') %>
<%= 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_ansible_variables', :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) %> |