2020-04-25 06:16:45 -07:00
|
|
|
|
#modal-privileges.modal.fade{"aria-hidden" => "true", "aria-labelledby" => "modal-privileges-label", :role => "dialog", :tabindex => "-1"}
|
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
%h5#modal-privileges-label.modal-title
|
|
|
|
|
= 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'
|
|
|
|
|
%ul.list-group.groups--list
|
|
|
|
|
- if current_user.has_role?(:administrator)
|
2020-04-26 06:27:19 -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
|
|
|
|
|
%button.btn.btn-primary{name: 'checked-privileges', type: :button, data: { dismiss: :modal }}= t 'views.actions.done'
|