From b6c03110972af84e72fb80bfaabfab7072786798 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Mon, 8 Dec 2014 10:42:06 +0100 Subject: [PATCH] Bootstrapify problem show page --- app/views/problems/show.html.erb | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app/views/problems/show.html.erb b/app/views/problems/show.html.erb index a2e0a32..f3c7dc1 100644 --- a/app/views/problems/show.html.erb +++ b/app/views/problems/show.html.erb @@ -1,14 +1,15 @@ -

<%= notice %>

+<% if notice %> +

<%= notice %>

+<% end %> -

- Title: - <%= @problem.title %> -

+ -

- Content: - <%= @problem.content %> -

+
+
+ <%= sanitize @problem.content %> +
+
-<%= link_to 'Edit', edit_problem_path(@problem) %> | -<%= link_to 'Back', problems_path %> +<%= button_to 'Edit', edit_problem_path(@problem), class: 'btn btn-default' %>