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
References:
File last commit:
Show/Diff file:
Action:
app/views/problems/show.rhtml
| 18 lines
| 364 B
| text/html+ruby
| RhtmlLexer
|
|
r0 | <% for column in Problem.content_columns %> | ||
<p> | ||||
|
r88 | <b><%= column.human_name %>:</b> | ||
|
r92 | <%=h @problem.send(column.name) %> | ||
|
r0 | </p> | ||
<% end %> | ||||
|
r92 | <p> | ||
<b>Description:</b><br/> | ||||
<% if @problem.description!=nil %> | ||||
<pre> | ||||
<%= @problem.description.body %> | ||||
</pre> | ||||
<% end %> | ||||
</p> | ||||
|
r0 | <%= link_to 'Edit', :action => 'edit', :id => @problem %> | | ||
<%= link_to 'Back', :action => 'list' %> | ||||