From 0113d895e2fd8bf2cf88ae0196b9ab144ac9350b Mon Sep 17 00:00:00 2001 From: erdgeist Date: Mon, 13 Jul 2026 19:28:49 +0200 Subject: Remove redundant default translation from the translations subsection --- app/controllers/nodes_controller.rb | 1 - app/views/nodes/show.html.erb | 4 ---- 2 files changed, 5 deletions(-) diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index 249602d..bff1733 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb @@ -62,7 +62,6 @@ class NodesController < ApplicationController def show @page = @node.draft || @node.head - @default_translation = @page.translations.find_by(:locale => I18n.default_locale) @translations = @page.translation_summary end diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index e6a922b..1469572 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb @@ -73,10 +73,6 @@
Translations
-
- <%= I18n.default_locale.to_s.upcase %> (default) - <%= @page.title %> — updated <%= @default_translation&.updated_at || @page.updated_at %> -
<% @translations.each do |t| %>
<%= t[:locale].to_s.upcase %> -- cgit v1.3