From 862edbf4d5fdb9a88f84bfa1d51ab8cc83896094 Mon Sep 17 00:00:00 2001
From: erdgeist
Date: Thu, 13 Aug 2026 01:11:29 +0200
Subject: Give every admin page one horizontal gutter
by many views inside. The inner ones are gone
nodes#edit's becomes #body_field, which is what #edit_grid places in its
full-width row.
Rows now reach into the label band themselves rather than depending on a
page wrapper to do it. The label column plus its gap equals the escape, so
a row's content starts at the gutter on every page; #edit_grid's rows are
exempt because the grid already steps back.
share one left edge. #new_node's -118px was compensating for that 10px and
left the page 7px out once it went. standalone_action_bar was overridden
everywhere it appeared.
page_translations#edit no longer uses #edit_grid: it has no metadata column,
so the two-column template pushed its abstract into the empty half.
nodes#edit's lower action bar was inside #edit_grid, so it was a grid item
inheriting the escape and sat 125px left of the form above it.
---
app/views/revisions/diff.html.erb | 8 ++++----
app/views/revisions/index.html.erb | 2 +-
app/views/revisions/show.html.erb | 18 +++++++++++++++++-
3 files changed, 22 insertions(+), 6 deletions(-)
(limited to 'app/views/revisions')
diff --git a/app/views/revisions/diff.html.erb b/app/views/revisions/diff.html.erb
index 25f5ad04..17146615 100644
--- a/app/views/revisions/diff.html.erb
+++ b/app/views/revisions/diff.html.erb
@@ -1,6 +1,6 @@
<%= t(".title") %>
-
+
<%= link_to t(".revisions_link"), node_revisions_path(@node) %>
@@ -23,7 +23,7 @@
<%= t(".comparing_html", :start => start_control, :end => end_control,
:lang => locale_control, :view => view_control) %>
-
+
<% if earlier %>
<%= link_to t(".pair_link", :from => earlier.first, :to => earlier.last), diff_node_revisions_path(@node,
start_revision: earlier.first, end_revision: earlier.last,
@@ -43,13 +43,13 @@
<% end %>
<% unless numeric_comparison %>
-
+
<%= link_to t(".compare_numbered"), node_revisions_path(@node) %>
<% end %>
<% if @available_layer_pairs.present? %>
-
+
<% @available_layer_pairs.each do |pair| %>
<% next if [params[:start_revision].to_s, params[:end_revision].to_s].sort == pair.map(&:to_s).sort %>
<%= button_to t("nodes.show.diff_layers", :from => t("nodes.show.layer_#{pair.first}"), :to => t("nodes.show.layer_#{pair.last}")),
diff --git a/app/views/revisions/index.html.erb b/app/views/revisions/index.html.erb
index 09eac565..c913b2a9 100644
--- a/app/views/revisions/index.html.erb
+++ b/app/views/revisions/index.html.erb
@@ -1,6 +1,6 @@
<%= t(".title", :path => @node.unique_name) %>
-
+
<%= link_to t(".back_to_node"), node_path(@node) %>
diff --git a/app/views/revisions/show.html.erb b/app/views/revisions/show.html.erb
index 1456a051..a898b7e6 100644
--- a/app/views/revisions/show.html.erb
+++ b/app/views/revisions/show.html.erb
@@ -2,7 +2,7 @@
<%= t(".title", :rev => @page.revision) %>: <%= translation&.title %> (<%= @translation_locale.to_s.upcase %>)
-
+
<%= t("admin.columns.actions") %>
+
+
<%= t("admin.columns.path") %>
<%= @page.public_link %>
+
+
<%= t("admin.columns.author") %>
<%= @page.user.try(:login) %>
+
+
<%= t("admin.columns.editor") %>
<%= @page.editor.try(:login) %>
+
+
<%= t("nodes.show.last_updated") %>
<%= admin_datetime(@page.updated_at) %>
+
+
<%= t("nodes.show.published_at") %>
<%= admin_datetime(@page.published_at) %>
+
+
<%= Page.human_attribute_name(:title) %>
<%= translation&.title %>
+
+
<%= Page.human_attribute_name(:abstract) %>
<%= translation&.abstract %>
+
+
<%= Page.human_attribute_name(:body) %>
<%= raw translation&.body %>
--
cgit v1.3