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' %>