% title _("Ansible Roles") %> <% title_actions ansible_proxy_import(hash_for_import_ansible_roles_path) %>
<%= 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 = [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) %> |