<% title _("Architectures") %>
<% title_actions display_link_if_authorized(_("New Architecture"), hash_for_new_architecture_path), help_path %>

<table class="table table-bordered table-striped table-two-pane">
  <tr>
    <th><%= sort :name, :as => s_("Architecture|Name") %></th>
    <th><%= _("Operating Systems") %></th>
    <th></th>
  </tr>
  <% for architecture in @architectures %>
    <tr>
      <td class='col-md-3'><%= link_to_if_authorized(h(architecture.name), hash_for_edit_architecture_path(:id => architecture)) %></td>
      <td><%=h architecture.operatingsystems.map(&:to_label).to_sentence %></td>
      <td align="right">
        <%= display_delete_if_authorized hash_for_architecture_path(:id => architecture.name), :confirm => "Delete #{architecture.name}?" %>
      </td>
    </tr>
  <% end %>
</table>
<%= page_entries_info @architectures %>
<%= will_paginate @architectures %>
