% content_for :title, t(".roles") %>
<%= t(".intro") %>
| <%= 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" %> |