Show More
Commit Description:
merge
Commit Description:
merge
References:
File last commit:
Show/Diff file:
Action:
app/views/user_admin/admin.html.haml | 25 lines | 607 B | text/x-haml | HamlLexer |
Jittat Fakcharoenphol
added admin users management
r233 %h1 Administrators
Jittat Fakcharoenphol
manages users in contests
r280 %table{:class => 'info'}
%tr{:class => 'info-head'}
Jittat Fakcharoenphol
added admin users management
r233 %th #
%th Login
%th Full name
%th
- @admins.each_with_index do |user, i|
%tr
%td= i+1
%td= user.login
%td= user.full_name
%td
- if user.login!='root'
= link_to '[revoke]', :action => 'revoke_admin', :id => user.id
%hr
Jittat Fakcharoenphol
fixed form_tag/form_for, disabled attributes whitelist
r321 = form_tag :action => 'grant_admin' do
- more test on user admin and authorization...
r754 = label_tag :login, 'Grant admin permission to:'
= text_field_tag 'login',nil, class: 'input-field'
= submit_tag 'Grant', class: 'btn btn-primary'
Jittat Fakcharoenphol
added admin users management
r233
%hr/
= link_to '[go back to index]', :action => 'index'