This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2022-07-04 17:41:40 -07:00
|
|
|
.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
|
2022-07-05 11:01:50 -07:00
|
|
|
= link_to t('admin.roles.assigned_users', count: role.users.count), admin_accounts_path(role_ids: role.id)
|
2022-07-04 17:41:40 -07:00
|
|
|
•
|
|
|
|
%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)
|