update modal

This commit is contained in:
Andreas N 2015-02-03 18:10:14 +01:00
parent 06cc52ffc5
commit 26cd72ba2e
1 changed files with 8 additions and 9 deletions

View File

@ -10,14 +10,13 @@
= succeed "'s" do = succeed "'s" do
= @user.screen_name = @user.screen_name
privileges privileges
.modal-body
%ul.list-group.groups--list %ul.list-group.groups--list
- unless @user.admin? - 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: '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 = 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? - if current_user.admin?
= render 'user/modal_privileges_item', privilege: 'supporter', description: 'oy vey muh shekels', user: @user = render 'user/modal_privileges_item', privilege: 'supporter', description: 'This user supports the site with money', user: @user
= render 'user/modal_privileges_item', privilege: 'moderator', user: @user = render 'user/modal_privileges_item', privilege: 'moderator', description: 'Someone trustworthy enough to help managing reports',user: @user
= render 'user/modal_privileges_item', privilege: 'admin', user: @user = render 'user/modal_privileges_item', privilege: 'admin', description: 'This user is part of the core team', user: @user
.modal-footer .modal-footer
%button.btn.btn-primary{name: 'checked-privileges', type: :button, data: { dismiss: :modal }} Done %button.btn.btn-primary{name: 'checked-privileges', type: :button, data: { dismiss: :modal }} Done