Show More
Commit Description:
update message console
Commit Description:
update message console
References:
File last commit:
Show/Diff file:
Action:
app/views/main/_submission_short.html.haml
| 29 lines
| 1.2 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 | = " [" | ||
| r679 | %tt.grader-comment | |||
|
|
r73 | = 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'} | |||
| r754 | = link_to "#{t 'main.cmp_msg'}", compiler_msg_submission_path(submission), {popup: true,remote: true,class: 'btn btn-xs btn-info'} | |||
| = link_to "#{t 'main.src_link'}",download_submission_path(submission), class: 'btn btn-xs btn-info' | ||||
| r598 | = link_to "#{t 'main.submissions_link'}", problem_submissions_path(problem_id), class: 'btn btn-xs btn-info' | |||
| r625 | - if GraderConfiguration.show_testcase | |||
| r632 | = link_to "testcases", show_problem_testcases_path(problem_id), class: 'btn btn-xs btn-info' | |||
| r598 | ||||
