Sha256: 79d261d3f507365b3b290dbbc8fe8e947b4f807b64cbc1fb83a4c72dcef9d318

Contents?: true

Size: 975 Bytes

Versions: 5

Compression:

Stored size: 975 Bytes

Contents

<% title _("Operating systems") %>
<% title_actions display_link_if_authorized(_("New Operating system"), hash_for_new_operatingsystem_path) %>

<table class="table table-bordered table-striped">
  <tr>
    <th><%= sort :name, :as => s_("Operatingsystem|Name") %></th>
    <th><%= _("Hosts") %></th>
    <th></th>
  </tr>
  <% for operatingsystem in @operatingsystems %>
    <tr>
      <td><%= link_to_if_authorized(os_name(operatingsystem), hash_for_edit_operatingsystem_path(:id => operatingsystem.id)) %></td>
      <td class="ra"><%= link_to @counter[operatingsystem.id] || 0, hosts_path(:search => "os = #{operatingsystem.name}") %></td>
      <td class="ra">
        <%= display_delete_if_authorized hash_for_operatingsystem_path(:id => operatingsystem), :confirm => _("Delete %s?") % operatingsystem.fullname %>
      </td>
    </tr>
  <% end %>
</table>

<%= page_entries_info @operatingsystems, :model => "operating system" %>
<%= will_paginate @operatingsystems %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/operatingsystems/index.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/operatingsystems/index.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/operatingsystems/index.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/operatingsystems/index.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/operatingsystems/index.html.erb