2022-07-05 02:41:40 +02:00
|
|
|
- content_for :page_title do
|
|
|
|
= t('admin.roles.title')
|
|
|
|
|
|
|
|
- content_for :heading_actions do
|
|
|
|
= link_to t('admin.roles.add_new'), new_admin_role_path, class: 'button' if can?(:create, :user_role)
|
|
|
|
|
|
|
|
%p= t('admin.roles.description_html')
|
|
|
|
|
|
|
|
%hr.spacer/
|
|
|
|
|
2024-07-23 17:30:45 +02:00
|
|
|
.announcements-list
|
2022-07-05 02:41:40 +02:00
|
|
|
= render partial: 'role', collection: @roles.select(&:everyone?)
|
|
|
|
|
|
|
|
%hr.spacer/
|
|
|
|
|
2024-07-23 17:30:45 +02:00
|
|
|
.announcements-list
|
2022-07-05 02:41:40 +02:00
|
|
|
= render partial: 'role', collection: @roles.reject(&:everyone?)
|