From dab53a1ef28ecc281d574b50d3433e806db375cd Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 2 Aug 2026 14:31:50 +0200 Subject: Keep the compared translation independent of the interface language --- app/views/revisions/show.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views/revisions/show.html.erb') diff --git a/app/views/revisions/show.html.erb b/app/views/revisions/show.html.erb index a39071c6..addcfa1a 100644 --- a/app/views/revisions/show.html.erb +++ b/app/views/revisions/show.html.erb @@ -1,13 +1,13 @@ -<% translation = @page.translations.find_by(:locale => @locale) %> +<% translation = @page.translations.find_by(:locale => @translation_locale) %>
-

<%= t(".title", :rev => @page.revision) %>: <%= translation&.title %> (<%= @locale.to_s.upcase %>)

+

<%= t(".title", :rev => @page.revision) %>: <%= translation&.title %> (<%= @translation_locale.to_s.upcase %>)

<%= t("admin.columns.actions") %>
- <%= link_to t(".show_all"), node_revisions_path(@node, :locale => @locale) %> + <%= link_to t(".show_all"), node_revisions_path(@node, :translation_locale => @translation_locale) %>
-- cgit v1.3