<% title _("Roles") %>
<% title_actions link_to(_("New role"), new_role_path),
   link_to_if_authorized(_("Permissions report"), :action => 'report') %>

<table class="table table-bordered table-striped table-two-pane">
  <thead>
    <tr>
      <th><%= sort :name, :as => s_("Role|Name") %></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <% for role in @roles %>
      <tr>
        <td>
          <%= content_tag(role.builtin? ? 'em' : 'span', link_to_if_authorized(role.name, :action => 'edit', :id => role)) %>
        </td>
        <td class="buttons">
          <%= display_delete_if_authorized(hash_for_role_path(:id => role),
                                    :confirm => (_("Delete %s?") % role.name)) unless role.builtin?
          %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>
<%= page_entries_info @roles %>
<%= will_paginate     @roles %>
