2020-05-10 03:53:30 -07:00
|
|
|
|
.modal.fade#modal-privileges{ aria: { hidden: true, labelledby: 'modal-privileges-label' }, role: :dialog, tabindex: -1 }
|
2020-04-25 06:16:45 -07:00
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
2020-05-10 03:53:30 -07:00
|
|
|
|
%h5.modal-title#modal-privileges-label
|
|
|
|
|
= raw t('views.actions.privilege', user: user.screen_name)
|
|
|
|
|
%button.close{ data: { dismiss: :modal }, type: :button }
|
|
|
|
|
%span{ aria: { hidden: true } } ×
|
2020-04-25 06:16:45 -07:00
|
|
|
|
%span.sr-only= t 'views.actions.close'
|
2020-05-25 09:10:28 -07:00
|
|
|
|
%ul.list-group
|
2020-04-25 06:16:45 -07:00
|
|
|
|
- if current_user.has_role?(:administrator)
|
2020-05-10 03:53:30 -07:00
|
|
|
|
= render 'modal/privileges/item', privilege: 'moderator', description: t('views.modal.privilege.moderator'), user: user
|
|
|
|
|
= render 'modal/privileges/item', privilege: 'admin', description: t('views.modal.privilege.admin'), user: user
|
2020-04-25 06:16:45 -07:00
|
|
|
|
.modal-footer
|
2020-05-10 03:53:30 -07:00
|
|
|
|
%button.btn.btn-primary{ name: 'checked-privileges', type: :button, data: { dismiss: :modal } }= t 'views.actions.done'
|