2022-07-26 17:11:48 -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
|
2022-07-26 17:11:48 -07:00
|
|
|
|
= t(".title", user: user.screen_name)
|
2020-05-10 03:53:30 -07:00
|
|
|
|
%button.close{ data: { dismiss: :modal }, type: :button }
|
|
|
|
|
%span{ aria: { hidden: true } } ×
|
2022-07-26 17:11:48 -07:00
|
|
|
|
%span.sr-only= t("voc.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)
|
2022-07-26 17:11:48 -07:00
|
|
|
|
= render "modal/privileges/item", privilege: "moderator", description: t(".role.moderator"), user: user
|
|
|
|
|
= render "modal/privileges/item", privilege: "admin", description: t(".role.admin"), user: user
|
2020-04-25 06:16:45 -07:00
|
|
|
|
.modal-footer
|
2022-07-26 17:11:48 -07:00
|
|
|
|
%button.btn.btn-primary{ name: "checked-privileges", type: :button, data: { dismiss: :modal } }= t("voc.close")
|