Show More
Commit Description:
fix link back to problems in problems path
Commit Description:
fix link back to problems in problems path
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_submission_short.html.haml
| 27 lines
| 936 B
| text/x-haml
| HamlLexer
|
|
r51 | |||
r575 | - if submission.nil? | |||
|
r51 | = "-" | ||
- else | ||||
r575 | - if submission.graded_at.nil? | |||
r587 | = 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'] | ||
r587 | %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 | ||
|
r162 | = link_to("[#{t 'main.cmp_msg'}]", {:action => 'compiler_msg', :id => submission.id}, {:popup => true}) | ||
|
r51 | = " | " | ||
|
r162 | = link_to("[#{t 'main.src_link'}]",{:action => 'source', :id => submission.id}) | ||
r585 | = " | " | |||
= link_to "[#{t 'main.submissions_link'}]", :action => 'submission', :id => problem_name | ||||