Retrospring/app/views/modal/_privileges.haml

16 lines
926 B
Plaintext
Raw Normal View History

2020-05-10 03:53:30 -07:00
.modal.fade#modal-privileges{ aria: { hidden: true, labelledby: 'modal-privileges-label' }, role: :dialog, tabindex: -1 }
.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 } } ×
%span.sr-only= t 'views.actions.close'
2020-05-25 09:10:28 -07:00
%ul.list-group
- 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
.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'