Show More
Commit Description:
add enabled option for user
Commit Description:
add enabled option for user
References:
File last commit:
Show/Diff file:
Action:
app/views/user_admin/user_stat.html.haml | 61 lines | 2.1 KiB | text/x-haml | HamlLexer |
- add problem toggle test js reponse (it was forgotten)...
r570 /- content_for :header do
/ = javascript_include_tag 'local_jquery'
/ = stylesheet_link_tag 'tablesorter-theme.cafe'
add table sorter and combine user_stat and user_stat_max action into one view
r430
%script{:type=>"text/javascript"}
$(function () {
$('#since_datetime').datetimepicker({ showButtonPanel: true, dateFormat: "yy-mm-dd", controlType: "slider"} );
$('#until_datetime').datetimepicker({ showButtonPanel: true, dateFormat: "yy-mm-dd", controlType: "slider"} );
- add problem toggle test js reponse (it was forgotten)...
r570 /$('#my_table').tablesorter({widgets: ['zebra']});
add table sorter and combine user_stat and user_stat_max action into one view
r430 });
%h1 User grading results
%h2= params[:action] == 'user_stat' ? "Show scores from latest submission" : "Show max scores in submission range"
- if @problem and @problem.errors
=error_messages_for 'problem'
= render partial: 'submission_range'
add download score as csv
r449 - if params[:action] == 'user_stat'
%h3 Latest score
= link_to '[download csv with all problems]', controller: :user_admin, action: :user_stat, commit: 'download csv'
add table sorter and combine user_stat and user_stat_max action into one view
r430 - else
add download score as csv
r449 %h3 Max score
add table sorter and combine user_stat and user_stat_max action into one view
r430 = link_to '[Show only latest submissions]', controller: :user_admin, action: :user_stat
add download score as csv
r449 = link_to '[download csv with all problems]', controller: :user_admin, action: :user_stat_max, commit: 'download csv'
add table sorter and combine user_stat and user_stat_max action into one view
r430
- add problem toggle test js reponse (it was forgotten)...
r570 %table.table.sortable.table-striped.table-bordered
add table sorter and combine user_stat and user_stat_max action into one view
r430 %thead
%tr
- add problem toggle test js reponse (it was forgotten)...
r570 %th Login
add table sorter and combine user_stat and user_stat_max action into one view
r430 %th Name
%th Activated?
- add problem toggle test js reponse (it was forgotten)...
r570 %th Logged_in
add table sorter and combine user_stat and user_stat_max action into one view
r430 %th Contest(s)
add remark and enable for user
r476 %th Remark
add table sorter and combine user_stat and user_stat_max action into one view
r430 - @problems.each do |p|
- add problem toggle test js reponse (it was forgotten)...
r570 %th.text-right= p.name
%th.text-right Total
%th.text-right Passed
add table sorter and combine user_stat and user_stat_max action into one view
r430 %tbody
- @scorearray.each do |sc|
- add problem toggle test js reponse (it was forgotten)...
r570 %tr
add table sorter and combine user_stat and user_stat_max action into one view
r430 - total,num_passed = 0,0
- sc.each_index do |i|
- if i == 0
add user profile page listing all submission, permission is by 'right.user_view_submission'...
r431 %td= link_to sc[i].login, controller: 'users', action: 'profile', id: sc[i]
add table sorter and combine user_stat and user_stat_max action into one view
r430 %td= sc[i].full_name
%td= sc[i].activated
- fix ssl, we no longer check SSL for the API call to chula
r585 %td= sc[i].try(:contest_stat).try(:started_at) ? 'yes' : 'no'
add table sorter and combine user_stat and user_stat_max action into one view
r430 %td= sc[i].contests.collect {|c| c.name}.join(', ')
add remark and enable for user
r476 %td= sc[i].remark
add table sorter and combine user_stat and user_stat_max action into one view
r430 - else
- add problem toggle test js reponse (it was forgotten)...
r570 %td.text-right= sc[i][0]
add table sorter and combine user_stat and user_stat_max action into one view
r430 - total += sc[i][0]
- num_passed += 1 if sc[i][1]
- add problem toggle test js reponse (it was forgotten)...
r570 %td.text-right= total
%td.text-right= num_passed
:javascript
$.bootstrapSortable(true,'reversed')