Show More
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml...
Commit Description:
* DRY the toggle button via application_helper.rb#toggle_button and _toggle_button.js.haml * bootrapize the user_admin * now considering user.enabled * tidy up route
File last commit:
Show/Diff file:
Action:
app/views/problems/show.html.erb | 24 lines | 518 B | text/plain | TextLexer |
<% for column in Problem.content_columns %>
<p>
<b><%= column.human_name %>:</b>
<%=h @problem.send(column.name) %>
</p>
<% end %>
<p>
<b>Description:</b><br/>
<% if @problem.description!=nil %>
<% if @problem.description.markdowned %>
<%= markdown(@problem.description.body) %>
<% else %>
<pre>
<%= @problem.description.body %>
</pre>
<% end %>
<% else %>
(not available)
<% end %>
</p>
<%= link_to 'Edit', :action => 'edit', :id => @problem %> |
<%= link_to 'Back', :action => 'list' %>