Description:
markdowned task body
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@284 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
r145:96c29b90fed2 - - 1 file changed: 6 inserted, 0 deleted
@@ -8,10 +8,16 | |||
|
8 | 8 | <p> |
|
9 | 9 | <b>Description:</b><br/> |
|
10 | 10 | <% if @problem.description!=nil %> |
|
11 | + <% if @problem.description.markdowned %> | |
|
12 | + <%= markdown(@problem.description.body) %> | |
|
13 | + <% else %> | |
|
11 | 14 | <pre> |
|
12 | 15 | <%= @problem.description.body %> |
|
13 | 16 | </pre> |
|
14 | 17 | <% end %> |
|
18 | + <% else %> | |
|
19 | + (not available) | |
|
20 | + <% end %> | |
|
15 | 21 | </p> |
|
16 | 22 | |
|
17 | 23 | <%= link_to 'Edit', :action => 'edit', :id => @problem %> | |
You need to be logged in to leave comments.
Login now