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: 8 inserted, 4 deleted
@@ -6,22 +6,26 | |||
|
6 | 6 | %p |
|
7 | 7 | User: |
|
8 | 8 | = "(#{@submission.user.login}) #{@submission.user.full_name}" |
|
9 | 9 | %br/ |
|
10 | 10 | Problem: |
|
11 | 11 | - if @submission.problem!=nil |
|
12 | - = "#{@submission.problem.full_name}" | |
|
12 | + = "(#{@submission.problem.name}) #{@submission.problem.full_name}" | |
|
13 | 13 | - else |
|
14 | 14 | = "(n/a)" |
|
15 | 15 | %br/ |
|
16 | 16 | = "Number: #{@submission.number}" |
|
17 | 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/ | |
|
20 | + = "Points: #{@submission.points}/#{@submission.problem.full_score}" | |
|
19 | 21 | %br/ |
|
20 | - = "Points : #{@submission.points}/#{@submission.problem.full_score}" | |
|
22 | + = "Comment: #{@submission.grader_comment}" | |
|
21 | 23 | %br/ |
|
22 |
- = " |
|
|
24 | + = "Runtime (ms): #{@submission.max_runtime}" | |
|
25 | + %br/ | |
|
26 | + = "Memory (kb): #{@submission.peak_memory}" | |
|
23 | 27 | |
|
24 | 28 | %b Source code (first 10kb) |
|
25 | 29 | //%div.highlight{:style => "border: 1px solid black;"} |
|
26 | 30 | =@formatted_code.html_safe |
|
27 | 31 |
You need to be logged in to leave comments.
Login now