summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/nodes_controller.rb1
-rw-r--r--app/views/nodes/show.html.erb4
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>