Show More
Commit Description:
add more detail to hof
Commit Description:
add more detail to hof
References:
File last commit:
Show/Diff file:
Action:
app/views/graders/submission.html.haml
| 31 lines
| 842 B
| text/x-haml
| HamlLexer
|
r420 | %style{type: "text/css"} | |||
= @css_style | ||||
|
r105 | %h1= "Submission: #{@submission.id}" | ||
%p | ||||
User: | ||||
r425 | = "(#{@submission.user.login}) #{@submission.user.full_name}" | |||
|
r105 | %br/ | ||
Problem: | ||||
- if @submission.problem!=nil | ||||
r437 | = "(#{@submission.problem.name}) #{@submission.problem.full_name}" | |||
|
r105 | - else | ||
= "(n/a)" | ||||
%br/ | ||||
= "Number: #{@submission.number}" | ||||
%br/ | ||||
r437 | = "Submitted: #{time_ago_in_words(@submission.submitted_at)} ago (at #{@submission.submitted_at.to_formatted_s(:long)})" | |||
%br/ | ||||
= "Points: #{@submission.points}/#{@submission.problem.full_score}" | ||||
r420 | %br/ | |||
r437 | = "Comment: #{@submission.grader_comment}" | |||
r420 | %br/ | |||
r439 | = "Runtime (s): #{@submission.max_runtime}" | |||
r437 | %br/ | |||
r439 | = "Memory (kb): #{number_with_delimiter(@submission.peak_memory)}" | |||
|
r105 | |||
%b Source code (first 10kb) | ||||
r420 | //%div.highlight{:style => "border: 1px solid black;"} | |||
=@formatted_code.html_safe | ||||
|
r105 | |||