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 @@
|
||||
<p id="notice"><%= notice %></p>
|
||||
<% 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' %>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user