Description:
modify submission page
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r437:f9377b82d873 - - 1 file changed: 6 inserted, 2 deleted
@@ -9,17 +9,21 | |||||
|
9 | %br/ |
|
9 | %br/ |
|
10 | Problem: |
|
10 | Problem: |
|
11 | - if @submission.problem!=nil |
|
11 | - if @submission.problem!=nil |
|
12 | - = "#{@submission.problem.full_name}" |
|
12 | + = "(#{@submission.problem.name}) #{@submission.problem.full_name}" |
|
13 | - else |
|
13 | - else |
|
14 | = "(n/a)" |
|
14 | = "(n/a)" |
|
15 | %br/ |
|
15 | %br/ |
|
16 | = "Number: #{@submission.number}" |
|
16 | = "Number: #{@submission.number}" |
|
17 | %br/ |
|
17 | %br/ |
|
18 | - = "Submitted at: #{format_short_time(@submission.submitted_at)}" |
|
18 | + = "Submitted: #{time_ago_in_words(@submission.submitted_at)} ago (at #{@submission.submitted_at.to_formatted_s(:long)})" |
|
19 | %br/ |
|
19 | %br/ |
|
20 |
= "Points |
|
20 | = "Points: #{@submission.points}/#{@submission.problem.full_score}" |
|
21 | %br/ |
|
21 | %br/ |
|
22 |
= "Comment |
|
22 | = "Comment: #{@submission.grader_comment}" |
|
|
23 | + %br/ | ||
|
|
24 | + = "Runtime (ms): #{@submission.max_runtime}" | ||
|
|
25 | + %br/ | ||
|
|
26 | + = "Memory (kb): #{@submission.peak_memory}" | ||
|
23 |
|
27 | ||
|
24 | %b Source code (first 10kb) |
|
28 | %b Source code (first 10kb) |
|
25 | //%div.highlight{:style => "border: 1px solid black;"} |
|
29 | //%div.highlight{:style => "border: 1px solid black;"} |
You need to be logged in to leave comments.
Login now