Description:
[web] fixing ticket #10
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@142 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r65:7c52d3ded481 - - 5 files changed: 14 inserted, 14 deleted
@@ -31,4 +31,14 | |||
|
31 | 31 | :action => action) |
|
32 | 32 | end |
|
33 | 33 | |
|
34 | + def format_short_time(time) | |
|
35 | + now = Time.now | |
|
36 | + st = '' | |
|
37 | + if (time.yday != now.yday) or | |
|
38 | + (time.year != now.year) | |
|
39 | + st = time.strftime("%x ") | |
|
40 | + end | |
|
41 | + st + time.strftime("%X") | |
|
42 | + end | |
|
43 | + | |
|
34 | 44 | end |
@@ -1,13 +1,3 | |||
|
1 | 1 | module MainHelper |
|
2 | 2 | |
|
3 | - def format_short_time(time) | |
|
4 | - now = Time.now | |
|
5 | - st = '' | |
|
6 | - if (time.yday != now.yday) or | |
|
7 | - (time.year != now.year) | |
|
8 | - st = time.strftime("%x ") | |
|
9 | - end | |
|
10 | - st + time.strftime("%X") | |
|
11 | - end | |
|
12 | - | |
|
13 | 3 | end |
@@ -9,7 +9,7 | |||
|
9 | 9 | </div> |
|
10 | 10 | <div style="display: none"> |
|
11 | 11 | <div class="compilermsgbody" style="border: thin solid grey; margin: 2px"> |
|
12 |
- <%= |
|
|
12 | + <%=simple_format(compiler_message) %> | |
|
13 | 13 | </div> |
|
14 | 14 | </div></div> |
|
15 | 15 | <% end %> |
You need to be logged in to leave comments.
Login now