mastodon/app/views/admin/email_subscriptions/_roles.html.haml
Eugen Rochko ee88da4511
Add admin UI for managing email subscriptions (#38741)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2026-05-04 13:56:04 +00:00

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)