diff --git a/app/views/ansible_roles/index.html.erb b/app/views/ansible_roles/index.html.erb index def0fd832..75cd3646a 100644 --- a/app/views/ansible_roles/index.html.erb +++ b/app/views/ansible_roles/index.html.erb @@ -1,47 +1,19 @@ +<%= webpacked_plugins_js_for :foreman_ansible %> +<%= webpacked_plugins_css_for :foreman_ansible %> + <% title _("Ansible Roles") %> <% title_actions ansible_proxy_import(hash_for_import_ansible_roles_path), documentation_button('#4.1ImportingRoles', :root_url => ansible_doc_url) %> -
<%= sort :name, :as => s_("Role|Name") %> | -<%= _("Hostgroups") %> | -<%= _("Hosts") %> | -<%= _("Variables") %> | -<%= sort :updated_at, :as => _("Imported at") %> | -<%= _("Actions") %> | -
---|---|---|---|---|---|
<%= role.name %> | -<%= link_to role.hostgroups.count, hostgroups_path(:search => "ansible_role = #{role.name}") %> | -<%= link_to role.hosts.count, hosts_path(:search => "ansible_role = #{role.name}")%> | -<%= link_to(role.ansible_variables.count, ansible_variables_path(:search => "ansible_role = #{role}")) %> | -<%= 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) %> - | -