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

Add links for problem translation and improvement

This commit is contained in:
Philipp Fischbeck 2014-12-30 19:50:35 +01:00
parent d20b3e0fef
commit d2f1292724
2 changed files with 7 additions and 2 deletions

View File

@ -17,7 +17,10 @@
<% if problem.is_translated? %>
<%= link_to problem.title, problem %>
<% else %>
<i>Dieses Problem wurde noch nicht übersetzt.</i>
<i>Dieses Problem wurde noch nicht übersetzt.</i>
<%= link_to new_problem_translation_path(problem), class: 'btn btn-default btn-xs' do %>
<%= icon :pencil %> Übersetzung vorschlagen
<% end %>
<% end %>
</td>

View File

@ -5,7 +5,9 @@
<div class="page-header">
<h1><%= @problem.title %> <small>Problem <%= @problem.id %></small></h1>
</div>
<%= link_to new_problem_translation_path(@problem), class: 'btn btn-default btn-sm pull-right' do %>
<%= icon :pencil %> Übersetzung verbessern
<% end %>
<%= panel do %>
<div class="panel-body problem-content">
<%= sanitize @problem.content %>