<% title _("Ansible Roles") %> <% title_actions ansible_proxy_import(hash_for_import_ansible_roles_path), documentation_button('#4.1ImportingRoles', :root_url => ansible_doc_url) %> <% @ansible_roles.each do |role| %> <% end %>
<%= sort :name, :as => s_("Role|Name") %> <%= _("Hostgroups") %> <%= _("Hosts") %> <%= sort :updated_at, :as => _("Imported at") %> <%= _("Actions") %>
<%= role.name %> <%= role.hostgroups.count %> <%= link_to role.hosts.count, hosts_path(:search => "role = #{role.name}")%> <%= import_time role %> <% links = [ link_to( _('Variables'), ansible_variables_path(:search => "ansible_role = #{role}") ), display_delete_if_authorized( hash_for_ansible_role_path(:id => role). merge(:auth_object => role, :authorizer => authorizer), :data => { :confirm => _("Delete %s?") % role.name }, :action => :delete ) ] %> <%= action_buttons(*links) %>
<%= will_paginate_with_info @ansible_roles %>