Sha256: 6936fd474e4287d8df211874c4cae5e8678451a81fe0e783afe7d217d289a321

Contents?: true

Size: 1.59 KB

Versions: 49

Compression:

Stored size: 1.59 KB

Contents

<% title _("Ansible Roles") %>

<% title_actions ansible_proxy_import(hash_for_import_ansible_roles_path),
  documentation_button('#4.1ImportingRoles', :root_url => ansible_doc_url) %>

<table class="<%= table_css_classes 'table-fixed' %>">
  <thead>
    <tr>
      <th class="col-md-6"><%= sort :name, :as => s_("Role|Name") %></th>
      <th class="col-md-2"><%= _("Hostgroups") %></th>
      <th class="col-md-2"><%= _("Hosts") %></th>
      <th class="col-md-2"><%= sort :updated_at, :as => _("Imported at") %></th>
      <th class="col-md-2"><%= _("Actions") %></th>
    </tr>
  </thead>
  <tbody>
    <% @ansible_roles.each do |role| %>
      <tr>
        <td class="ellipsis"><%= role.name %></td>
        <td class="ellipsis"><%= role.hostgroups.count %></td>
        <td class="ellipsis"><%= link_to role.hosts.count, hosts_path(:search => "ansible_role = #{role.name}")%></td>
        <td class="ellipsis"><%= import_time role %></td>
        <td>
          <%
              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) %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= will_paginate_with_info @ansible_roles %>

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
foreman_ansible-7.0.4 app/views/ansible_roles/index.html.erb
foreman_ansible-7.0.3 app/views/ansible_roles/index.html.erb
foreman_ansible-7.0.2 app/views/ansible_roles/index.html.erb
foreman_ansible-7.0.1 app/views/ansible_roles/index.html.erb
foreman_ansible-7.0.0 app/views/ansible_roles/index.html.erb
foreman_ansible-6.3.4 app/views/ansible_roles/index.html.erb
foreman_ansible-6.3.3 app/views/ansible_roles/index.html.erb
foreman_ansible-6.3.2 app/views/ansible_roles/index.html.erb
foreman_ansible-6.3.1 app/views/ansible_roles/index.html.erb
foreman_ansible-6.4.1 app/views/ansible_roles/index.html.erb
foreman_ansible-6.4.0 app/views/ansible_roles/index.html.erb
foreman_ansible-6.3.0 app/views/ansible_roles/index.html.erb
foreman_ansible-6.2.0 app/views/ansible_roles/index.html.erb
foreman_ansible-6.1.1 app/views/ansible_roles/index.html.erb
foreman_ansible-6.0.2 app/views/ansible_roles/index.html.erb
foreman_ansible-6.1.0 app/views/ansible_roles/index.html.erb
foreman_ansible-6.0.1 app/views/ansible_roles/index.html.erb
foreman_ansible-5.1.3 app/views/ansible_roles/index.html.erb
foreman_ansible-6.0.0 app/views/ansible_roles/index.html.erb
foreman_ansible-5.1.2 app/views/ansible_roles/index.html.erb