<% title _("Installation Media") %>

<% title_actions display_link_if_authorized(_("New Medium"), hash_for_new_medium_path), help_path %>

<table class="table table-bordered table-striped table-two-pane">
  <tr>
    <th><%= sort :name, :as => s_("Medium|Name") %></th>
    <th><%= sort :path, :as => s_("Medium|Path") %></th>
    <th><%= s_("Medium|Os family") %></th>
    <th><%= _("Operating Systems") %></th>
    <th></th>
  </tr>
  <% for medium in @media %>
    <tr>
      <td><%= link_to_if_authorized medium, hash_for_edit_medium_path(:id => medium.id) %></td>
      <td><%= medium.path %></td>
      <td><%= lookup_family(medium.os_family) %></td>
      <td><%= medium.operatingsystems.map(&:to_label).to_sentence %></td>
      <td>
        <%= display_delete_if_authorized hash_for_medium_path(:id => medium), :confirm => _("Delete %s?") % medium.name %>
      </td>
    </tr>
  <% end %>
</table>
<%= page_entries_info @media %>
<%= will_paginate     @media %>
