Show More
Commit Description:
render compiler message as modal
Commit Description:
render compiler message as modal
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_submission_short.html.haml
| 27 lines
| 1.1 KiB
| text/x-haml
| HamlLexer
|
|
r51 | |||
r575 | - if submission.nil? | |||
|
r51 | = "-" | ||
- else | ||||
r609 | - unless submission.graded_at | |||
r613 | = t 'main.submitted_at' | |||
|
r162 | = format_short_time(submission.submitted_at.localtime) | ||
|
r51 | - else | ||
r587 | %strong= t 'main.graded_at' | |||
= "#{format_short_time(submission.graded_at.localtime)} " | ||||
%br | ||||
|
r320 | - if GraderConfiguration['ui.show_score'] | ||
r613 | %strong=t 'main.score' | |||
|
r162 | = "#{(submission.points*100/submission.problem.full_score).to_i} " | ||
|
r73 | = " [" | ||
%tt | ||||
= submission.grader_comment | ||||
= "]" | ||||
r587 | %br | |||
%strong View: | ||||
|
r320 | - if GraderConfiguration.show_grading_result | ||
|
r134 | = 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.cmp_msg'}", compiler_msg_submission_path(submission.id), {popup: true,remote: true,class: 'btn btn-xs btn-info'} | ||||
r598 | = link_to "#{t 'main.src_link'}",{:action => 'source', :id => 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' | ||||