<% content_for :title, t(".roles") %>

<%= t(".roles") %>

<%= link_to t(".new_role"), new_admin_role_path, class: "btn-primary" %>

<%= t(".intro") %>

<% @roles.each do |role| %><% end %>
<%= t(".name") %><%= t(".can") %><%= t(".people") %>
<%= role.name %> <% if role.built_in? %><%= t(".built_in") %><% end %> <% if role.description.present? %>
<%= role.description %>
<% end %>
"> <%= role.owner? ? t(".everything") : (role.permissions.map { Permission.label(_1) }.to_sentence.presence || t(".view_only")) %> "><%= @counts.fetch(role.id, 0) %> <%= link_to t(".edit"), edit_admin_role_path(role), class: "btn-secondary btn-sm" %>