diff --git a/app/views/problems/show.html.erb b/app/views/problems/show.html.erb new file mode 100644 --- /dev/null +++ b/app/views/problems/show.html.erb @@ -0,0 +1,24 @@ +<% for column in Problem.content_columns %> +

+ <%= column.human_name %>: + <%=h @problem.send(column.name) %> +

+<% end %> + +

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

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

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