Show More
Commit Description:
anonymize submission show
Commit Description:
anonymize submission show
References:
File last commit:
Show/Diff file:
Action:
app/views/application/_submission_short.html.haml
| 32 lines
| 1.2 KiB
| text/x-haml
| HamlLexer
|
r581 | - if submission.nil? | |||
= "-" | ||||
- else | ||||
r696 | %strong= "Submission ID:" | |||
= submission.id | ||||
%br | ||||
r613 | - unless submission.graded_at | |||
r696 | %strong= t 'main.submitted_at:' | |||
= format_full_time_ago(submission.submitted_at.localtime) | ||||
r581 | - else | |||
r696 | %strong= t 'main.graded_at:' | |||
= format_full_time_ago(submission.graded_at.localtime) | ||||
r621 | %br | |||
r581 | - if GraderConfiguration['ui.show_score'] | |||
r621 | %strong=t 'main.score' | |||
r581 | = "#{(submission.points*100/submission.problem.full_score).to_i} " | |||
= " [" | ||||
%tt | ||||
= submission.grader_comment | ||||
= "]" | ||||
r621 | %br | |||
r696 | %strong View: | |||
- if GraderConfiguration.show_grading_result | ||||
= link_to '[detailed result]', :action => 'result', :id => submission.id | ||||
r742 | - if submission.graded_at | |||
r811 | = link_to "#{t 'main.cmp_msg'}", compiler_msg_submission_path(submission), {popup: true,remote: true,class: 'btn btn-xs btn-info'} | |||
-# | ||||
%button.btn.btn-info.btn-xs{type: 'button', data: {toggle: 'modal', target: '#compiler'}} | ||||
=t 'main.cmp_msg' | ||||
r621 | = link_to "#{t 'main.src_link'}", download_submission_path(submission.id), class: 'btn btn-xs btn-info' | |||
= link_to "#{t 'main.submissions_link'}", problem_submissions_path(problem_id), class: 'btn btn-xs btn-info' | ||||