Description:
modify submission page
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r437:f9377b82d873 - - 1 file changed: 6 inserted, 2 deleted

@@ -1,27 +1,31
1 %style{type: "text/css"}
1 %style{type: "text/css"}
2 = @css_style
2 = @css_style
3
3
4 %h1= "Submission: #{@submission.id}"
4 %h1= "Submission: #{@submission.id}"
5
5
6 %p
6 %p
7 User:
7 User:
8 = "(#{@submission.user.login}) #{@submission.user.full_name}"
8 = "(#{@submission.user.login}) #{@submission.user.full_name}"
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 : #{@submission.points}/#{@submission.problem.full_score}"
20 = "Points: #{@submission.points}/#{@submission.problem.full_score}"
21 %br/
21 %br/
22 = "Comment : #{@submission.grader_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;"}
26 =@formatted_code.html_safe
30 =@formatted_code.html_safe
27
31
You need to be logged in to leave comments. Login now