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 | 9 | = "#{@submission.problem.full_name}" |
|
10 | 10 | - else |
|
11 | 11 | = "(n/a)" |
|
12 | 12 | %br/ |
|
13 | 13 | = "Number: #{@submission.number}" |
|
14 | 14 | %br/ |
|
15 | 15 | = "Submitted at: #{format_short_time(@submission.submitted_at)}" |
|
16 | 16 | |
|
17 | 17 | %b Source code (first 10kb) |
|
18 | 18 | %div{:style => "border: 1px solid black; background: lightgrey"} |
|
19 | 19 | - if @submission.source |
|
20 | 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