Show More
Commit Description:
[web] refactor problem description, some styling...
Commit Description:
[web] refactor problem description, some styling git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@179 6386c4cd-e34a-4fa8-8920-d93eb39b512e
File last commit:
Show/Diff file:
Action:
app/views/tasks/_problem.html.erb | 22 lines | 490 B | text/plain | TextLexer |
<tr class="name">
<td>
<a name="<%= problem.name %>"></a>
<%= "#{problem.full_name} (#{problem.name})" %>
</td>
</tr>
<tr>
<% td_class = (problem_counter%2==0) ? "desc-even" : "desc-odd" %>
<td class="<%= td_class %>">
<% if problem.description!=nil %>
<% if problem.description.markdowned %>
<%= markdown(problem.description.body) %>
<% else %>
<pre>
<%= problem.description.body %>
</pre>
<% end %>
<% else %>
(not available)
<% end %>
</td>
</tr>