Description:
fixed calls to truncate
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r342:fee7f57d2bbe - - 1 file changed: 1 inserted, 1 deleted
@@ -9,14 +9,14 | |||||
|
9 | = "#{@submission.problem.full_name}" |
|
9 | = "#{@submission.problem.full_name}" |
|
10 | - else |
|
10 | - else |
|
11 | = "(n/a)" |
|
11 | = "(n/a)" |
|
12 | %br/ |
|
12 | %br/ |
|
13 | = "Number: #{@submission.number}" |
|
13 | = "Number: #{@submission.number}" |
|
14 | %br/ |
|
14 | %br/ |
|
15 | = "Submitted at: #{format_short_time(@submission.submitted_at)}" |
|
15 | = "Submitted at: #{format_short_time(@submission.submitted_at)}" |
|
16 |
|
16 | ||
|
17 | %b Source code (first 10kb) |
|
17 | %b Source code (first 10kb) |
|
18 | %div{:style => "border: 1px solid black; background: lightgrey"} |
|
18 | %div{:style => "border: 1px solid black; background: lightgrey"} |
|
19 | - if @submission.source |
|
19 | - if @submission.source |
|
20 | %pre |
|
20 | %pre |
|
21 |
- =h truncate |
|
21 | + =h truncate @submission.source, :length => 10240 |
|
22 |
|
22 |
You need to be logged in to leave comments.
Login now