Show More
Commit Description:
NEED TESTING...
Commit Description:
NEED TESTING
move to stronger parameter for xxx.new(params[
References:
File last commit:
Show/Diff file:
Action:
app/views/application/_submission_short.html.haml
| 26 lines
| 982 B
| text/x-haml
| HamlLexer
|
r581 | ||||
- if submission.nil? | ||||
= "-" | ||||
- else | ||||
r613 | - unless submission.graded_at | |||
r597 | = t 'main.submitted_at' | |||
r581 | = format_short_time(submission.submitted_at.localtime) | |||
- else | ||||
r621 | %strong= t 'main.graded_at' | |||
= "#{format_short_time(submission.graded_at.localtime)} " | ||||
%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 | |||
%strong View: | ||||
r581 | - if GraderConfiguration.show_grading_result | |||
= link_to '[detailed result]', :action => 'result', :id => submission.id | ||||
r621 | = link_to "#{t 'main.cmp_msg'}", {:action => 'compiler_msg', :id => submission.id}, {popup: true,class: 'btn btn-xs btn-info'} | |||
= 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' | ||||