23 lines
1.3 KiB
Plaintext
23 lines
1.3 KiB
Plaintext
#modal-privileges.modal.fade{"aria-hidden" => "true", "aria-labelledby" => "modal-privileges-label", :role => "dialog", :tabindex => "-1"}
|
||
.modal-dialog
|
||
.modal-content
|
||
.modal-header
|
||
%button.close{"data-dismiss" => "modal", :type => "button"}
|
||
%span{"aria-hidden" => "true"} ×
|
||
%span.sr-only Close
|
||
%h4#modal-privileges-label.modal-title
|
||
Check
|
||
= succeed "'s" do
|
||
= @user.screen_name
|
||
privileges
|
||
.modal-body
|
||
%ul.list-group.groups--list
|
||
- unless @user.admin?
|
||
= render 'user/modal_privileges_item', privilege: 'banned', description: 'Hit the user with ye olde banhammer', user: @user
|
||
= render 'user/modal_privileges_item', privilege: 'blogger', description: 'The user gets that privilege if they blogged something (nice) about Retrospring.', user: @user
|
||
- if current_user.admin?
|
||
= render 'user/modal_privileges_item', privilege: 'supporter', description: 'oy vey muh shekels', user: @user
|
||
= render 'user/modal_privileges_item', privilege: 'moderator', user: @user
|
||
= render 'user/modal_privileges_item', privilege: 'admin', user: @user
|
||
.modal-footer
|
||
%button.btn.btn-primary{name: 'checked-privileges', type: :button, data: { dismiss: :modal }} Done |