mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-28 19:10:22 -05:00
44b2ee3485
* Add customizable user roles * Various fixes and improvements * Add migration for old settings and fix tootctl role management
19 lines
786 B
Plaintext
19 lines
786 B
Plaintext
.announcements-list__item
|
|
= link_to edit_admin_role_path(role), class: 'announcements-list__item__title' do
|
|
%span.user-role{ class: "user-role-#{role.id}" }
|
|
= fa_icon 'users fw'
|
|
|
|
- if role.everyone?
|
|
= t('admin.roles.everyone')
|
|
- else
|
|
= role.name
|
|
|
|
.announcements-list__item__action-bar
|
|
.announcements-list__item__meta
|
|
- if role.everyone?
|
|
= t('admin.roles.everyone_full_description_html')
|
|
- else
|
|
= link_to t('admin.roles.assigned_users', count: role.users.count), admin_accounts_path(role_id: role.id)
|
|
•
|
|
%abbr{ title: role.permissions_as_keys.map { |privilege| I18n.t("admin.roles.privileges.#{privilege}") }.join(', ') }= t('admin.roles.permissions_count', count: role.permissions_as_keys.size)
|