mirror of
https://github.com/mastodon/mastodon.git
synced 2026-05-10 22:08:43 -05:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
.subheading-with-action
|
|
.subheading-with-action__subheading
|
|
%h3= t('.title')
|
|
%p= t('.lead')
|
|
- unless roles.empty?
|
|
.subheading-with-action__action
|
|
= link_to t('.manage_roles'), admin_roles_path, class: 'button button-secondary'
|
|
|
|
.table-wrapper
|
|
- if roles.empty?
|
|
.empty-state
|
|
= emptyphaunt
|
|
|
|
.empty-state__title-and-description
|
|
.empty-state__title-and-description__title
|
|
= t('.empty.no_roles_added')
|
|
.empty-state__title-and-description__description
|
|
= t('.empty.hint')
|
|
.empty-state__action
|
|
= link_to t('.manage_roles'), admin_roles_path, class: 'button'
|
|
- else
|
|
%table.table
|
|
%thead
|
|
%tr
|
|
%th= t('.role_name')
|
|
%th= t('.accounts')
|
|
%th
|
|
%tbody
|
|
- roles.each do |role|
|
|
%tr
|
|
%td
|
|
= role.name
|
|
%td
|
|
= role.users.count
|
|
%td.align-end
|
|
= link_to material_symbol('edit'), edit_admin_role_path(role), title: t('.edit_role'), class: 'table-icon-link' if can?(:update, role)
|