diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 19:28:49 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-13 19:28:49 +0200 |
| commit | 0113d895e2fd8bf2cf88ae0196b9ab144ac9350b (patch) | |
| tree | 9e553be1a3681654834231d73e1bf4d2108d61d5 | |
| parent | 6e6a66de5f648becd6aee00943d52cd9ce024ed3 (diff) | |
Remove redundant default translation from the translations subsection
| -rw-r--r-- | app/controllers/nodes_controller.rb | 1 | ||||
| -rw-r--r-- | app/views/nodes/show.html.erb | 4 |
2 files changed, 0 insertions, 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 | |||
| 62 | 62 | ||
| 63 | def show | 63 | def show |
| 64 | @page = @node.draft || @node.head | 64 | @page = @node.draft || @node.head |
| 65 | @default_translation = @page.translations.find_by(:locale => I18n.default_locale) | ||
| 66 | @translations = @page.translation_summary | 65 | @translations = @page.translation_summary |
| 67 | end | 66 | end |
| 68 | 67 | ||
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 @@ | |||
| 73 | <div class="node_description">Translations</div> | 73 | <div class="node_description">Translations</div> |
| 74 | <div class="node_content node_info_group"> | 74 | <div class="node_content node_info_group"> |
| 75 | <div class="node_info_group_items"> | 75 | <div class="node_info_group_items"> |
| 76 | <div class="node_info_item"> | ||
| 77 | <span class="node_info_label"><%= I18n.default_locale.to_s.upcase %> (default)</span> | ||
| 78 | <%= @page.title %> — updated <%= @default_translation&.updated_at || @page.updated_at %> | ||
| 79 | </div> | ||
| 80 | <% @translations.each do |t| %> | 76 | <% @translations.each do |t| %> |
| 81 | <div class="node_info_item"> | 77 | <div class="node_info_item"> |
| 82 | <span class="node_info_label"><%= t[:locale].to_s.upcase %></span> | 78 | <span class="node_info_label"><%= t[:locale].to_s.upcase %></span> |
