mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 16:46:42 +01:00
19 lines
800 B
Plaintext
19 lines
800 B
Plaintext
<% provide(:title, t('problems.show.problem_subtitle', id: @problem.id)) %>
|
|
|
|
<div class="page-header">
|
|
<p class="text-muted">
|
|
<%= render 'shared/authors', authors: @problem.authors, has_anonymous_author: @problem.has_anonymous_author? %>
|
|
</p>
|
|
<h1><%= @problem.title %> <small><%= t '.problem_subtitle', id: @problem.id %></small></h1>
|
|
</div>
|
|
<%= link_to new_problem_translation_path(@problem), class: 'btn btn-default btn-sm pull-right' do %>
|
|
<%= icon :pencil %> <%= t '.improve_translation' %>
|
|
<% end %>
|
|
<%= panel do %>
|
|
<div class="panel-body problem-content">
|
|
<%= sanitize @problem.content, scrubber: TranslationContentScrubber.new %>
|
|
</div>
|
|
<% end %>
|
|
<div class="text-center">
|
|
<%= link_to t('.view_original_problem'), @problem.original_url, target: '_blank' %>
|
|
</div> |