% provide(:title, t('problems.show.problem_subtitle', id: @translation.problem_id)) %>
<% if @translation.problem.is_translated? %>
<%= t('.already_translated') %> <%= link_to t('.visit_current_translation'), @translation.problem, target: '_blank', class: 'alert-link' %>
<% else %>
<%= t('.is_new_translation') %>
<% end %>
<% if @translation.pending? %>
<%= link_to admin_translation_decline_path(@translation), method: :post, class: 'btn btn-default btn-sm pull-right' do %>
<%= icon :remove %> <%= t '.decline_translation' %>
<% end %>
<%= link_to admin_translation_accept_path(@translation), method: :post, class: 'btn btn-default btn-sm pull-right' do %>
<%= icon :ok %> <%= t '.accept_translation' %>
<% end %>
<% end %>
<%= panel do %>
<%= sanitize @translation.content, scrubber: TranslationContentScrubber.new %>
<% end %>
<%= link_to t('problems.show.view_original_problem'), @translation.problem.original_url, target: '_blank' %>