1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 08:46:41 +01:00

Bootstrapify problem show page

This commit is contained in:
Philipp Fischbeck 2014-12-08 10:42:06 +01:00
parent 759cc8457a
commit b6c0311097

View File

@ -1,14 +1,15 @@
<p id="notice"><%= notice %></p> <% if notice %>
<p id="notice"><%= notice %></p>
<% end %>
<p> <div class="page-header">
<strong>Title:</strong> <h1><%= @problem.title %> <small>Problem <%= @problem.id %></small></h1>
<%= @problem.title %> </div>
</p>
<p> <div class="panel panel-default">
<strong>Content:</strong> <div class="panel-body problem-content">
<%= @problem.content %> <%= sanitize @problem.content %>
</p> </div>
</div>
<%= link_to 'Edit', edit_problem_path(@problem) %> | <%= button_to 'Edit', edit_problem_path(@problem), class: 'btn btn-default' %>
<%= link_to 'Back', problems_path %>