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:
parent
759cc8457a
commit
b6c0311097
@ -1,14 +1,15 @@
|
|||||||
|
<% if notice %>
|
||||||
<p id="notice"><%= notice %></p>
|
<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 %>
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user