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
@@ -1,22 +1,22 | |||
|
1 | 1 | %h1= "Submission: #{@submission.id}" |
|
2 | 2 | |
|
3 | 3 | %p |
|
4 | 4 | User: |
|
5 | 5 | = "#{@submission.user.login}" |
|
6 | 6 | %br/ |
|
7 | 7 | Problem: |
|
8 | 8 | - if @submission.problem!=nil |
|
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