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)
|
2023-01-04 04:26:27 -08:00
|
|
|
%button.btn-close{ data: { bs_dismiss: :modal }, type: :button }
|
2023-01-04 02:12:40 -08:00
|
|
|
%span.visually-hidden= t("voc.close")
|
2020-05-25 09:10:28 -07:00
|
|
|
%ul.list-group
|
2022-12-17 18:21:25 -08:00
|
|
|
- if current_user.has_cached_role?(:administrator)
|
2022-07-26 17:11:48 -07:00
|
|
|
= render "modal/privileges/item", privilege: "moderator", description: t(".role.moderator"), user: user
|
2024-02-27 15:35:25 -08:00
|
|
|
= render "modal/privileges/item", privilege: "administrator", description: t(".role.admin"), user: user
|
2020-04-25 06:16:45 -07:00
|
|
|
.modal-footer
|
2023-01-04 04:26:27 -08:00
|
|
|
%button.btn.btn-primary{ name: "checked-privileges", type: :button, data: { bs_dismiss: :modal } }= t("voc.close")
|