Show More
Commit Description:
fix displaying bug
Commit Description:
fix displaying bug
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_submission_short.html.haml
| 26 lines
| 915 B
| text/x-haml
| HamlLexer
|
|
r51 | |||
- if submission==nil | ||||
= "-" | ||||
- else | ||||
- if submission.graded_at==nil | ||||
|
r162 | =t 'main.submitted_at' | ||
= format_short_time(submission.submitted_at.localtime) | ||||
|
r51 | - else | ||
|
r162 | = t 'main.graded_at' | ||
= "#{format_short_time(submission.graded_at.localtime)}, " | ||||
|
r320 | - if GraderConfiguration['ui.show_score'] | ||
|
r162 | = t 'main.score' | ||
= "#{(submission.points*100/submission.problem.full_score).to_i} " | ||||
|
r73 | = " [" | ||
%tt | ||||
= submission.grader_comment | ||||
= "]" | ||||
|
r320 | - if GraderConfiguration.show_grading_result | ||
|
r134 | = " | " | ||
= link_to '[detailed result]', :action => 'result', :id => submission.id | ||||
|
r70 | = " | " | ||
|
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}) | ||
|
r70 | = " | " | ||
|
r162 | = link_to "[#{t 'main.submissions_link'}]", :action => 'submission', :id => problem_name | ||