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