<% provide(:title, t('problems.show.problem_subtitle', id: @translation.problem_id)) %>

<%= @translation.title %>

<%= t 'problems.show.problem_subtitle', id: @translation.problem_id %>
<% if @translation.pending? %>
<%= link_to admin_translation_decline_path(@translation), method: :post, class: 'btn btn-danger btn-sm' do %> <%= icon('fas', 'times') %> <%= t '.decline_translation' %> <% end %> <%= link_to admin_translation_accept_path(@translation), method: :post, class: 'btn btn-success btn-sm' do %> <%= icon('fas', 'check') %> <%= t '.accept_translation' %> <% end %>
<% end %>
<%= sanitize @translation.content, scrubber: TranslationContentScrubber.new %>
<% if @translation.problem.is_translated? %> <% if @translation.title != @translation.problem.title %>

<%= t 'activerecord.attributes.translation.title' %>

<%= t '.changed_title_html', old: @translation.problem.title, new: @translation.title %>

<% end %>

<%= t 'activerecord.attributes.translation.content' %>

<%= raw Diffy::Diff.new(@translation.problem.content, @translation.content, allow_empty_diff: false).to_s(:html) %> <% else %>

<%= t 'activerecord.attributes.translation.content' %>

<%= raw Diffy::Diff.new(@translation.content, @translation.content, allow_empty_diff: false).to_s(:html) %> <% end %>
<%= link_to t('problems.show.view_original_problem'), @translation.problem.original_url, target: '_blank' %>