index.html.haml 434 B

1234567891011121314151617
  1. - content_for :page_title do
  2. = t('admin.roles.title')
  3. - content_for :heading_actions do
  4. = link_to t('admin.roles.add_new'), new_admin_role_path, class: 'button' if can?(:create, :user_role)
  5. %p= t('admin.roles.description_html')
  6. %hr.spacer/
  7. .applications-list
  8. = render partial: 'role', collection: @roles.select(&:everyone?)
  9. %hr.spacer/
  10. .applications-list
  11. = render partial: 'role', collection: @roles.reject(&:everyone?)