# HG changeset patch # User jittat # Date 2008-10-19 00:27:36 # Node ID 96c29b90fed23472a9b3e42422a1daf92af28462 # Parent 361270a12986a9abadf433666289d6cfaae13844 markdowned task body git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@284 6386c4cd-e34a-4fa8-8920-d93eb39b512e diff --git a/app/views/problems/show.rhtml b/app/views/problems/show.rhtml --- a/app/views/problems/show.rhtml +++ b/app/views/problems/show.rhtml @@ -7,11 +7,17 @@

Description:
-<% if @problem.description!=nil %> + <% if @problem.description!=nil %> + <% if @problem.description.markdowned %> +<%= markdown(@problem.description.body) %> + <% else %>

 <%= @problem.description.body %>
 
-<% end %> + <% end %> + <% else %> + (not available) + <% end %>

<%= link_to 'Edit', :action => 'edit', :id => @problem %> |