2015-02-03 08:13:50 -08:00
|
|
|
|
#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"} ×
|
2015-06-07 06:10:17 -07:00
|
|
|
|
%span.sr-only= t 'views.actions.close'
|
2015-02-03 08:13:50 -08:00
|
|
|
|
%h4#modal-privileges-label.modal-title
|
2015-06-07 06:10:17 -07:00
|
|
|
|
= raw t('views.actions.privilege', user: @user.screen_name)
|
2015-02-03 09:10:14 -08:00
|
|
|
|
%ul.list-group.groups--list
|
2015-06-07 06:10:17 -07:00
|
|
|
|
= render 'user/modal_privileges_item', privilege: 'blogger', description: t('views.modal.privilege.blogger'), user: @user
|
|
|
|
|
= render 'user/modal_privileges_item', privilege: 'contributor', description: t('views.modal.privilege.contributor'), user: @user
|
2015-06-19 05:46:23 -07:00
|
|
|
|
= render 'user/modal_privileges_item', privilege: 'translator', description: t('views.modal.privilege.translator'), user: @user
|
2015-02-03 09:10:14 -08:00
|
|
|
|
- if current_user.admin?
|
2015-06-07 06:10:17 -07:00
|
|
|
|
= render 'user/modal_privileges_item', privilege: 'supporter', description: t('views.modal.privilege.supporter'), user: @user
|
|
|
|
|
= render 'user/modal_privileges_item', privilege: 'moderator', description: t('views.modal.privilege.moderator'),user: @user
|
|
|
|
|
= render 'user/modal_privileges_item', privilege: 'admin', description: t('views.modal.privilege.admin'), user: @user
|
2015-02-03 08:13:50 -08:00
|
|
|
|
.modal-footer
|
2015-06-07 06:10:17 -07:00
|
|
|
|
%button.btn.btn-primary{name: 'checked-privileges', type: :button, data: { dismiss: :modal }}= t 'views.actions.done'
|