summaryrefslogtreecommitdiff
path: root/app/views/page_translations/show.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-13 01:11:29 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-13 01:11:29 +0200
commit862edbf4d5fdb9a88f84bfa1d51ab8cc83896094 (patch)
tree2b8d8082b3549f664ef6f4babff3be864af4aac8 /app/views/page_translations/show.html.erb
parenta06f35bc0085aa744aef5fe2f4c4c036338b469b (diff)
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.
Diffstat (limited to 'app/views/page_translations/show.html.erb')
-rw-r--r--app/views/page_translations/show.html.erb38
1 files changed, 25 insertions, 13 deletions
diff --git a/app/views/page_translations/show.html.erb b/app/views/page_translations/show.html.erb
index 5f94ac38..b230c35e 100644
--- a/app/views/page_translations/show.html.erb
+++ b/app/views/page_translations/show.html.erb
@@ -1,29 +1,41 @@
1<h1><%= t(".title") %> — <%= title_for_node(@node) %></h1> 1<h1><%= t(".title") %> — <%= title_for_node(@node) %></h1>
2 2
3<p class="node_action_bar standalone_action_bar"><%= link_to t("page_translations.revision_history_link"), node_revisions_path(@node, :translation_locale => @locale) %></p> 3<p class="node_action_bar"><%= link_to t("page_translations.revision_history_link"), node_revisions_path(@node, :translation_locale => @locale) %></p>
4 4
5<div class="translation_compare"> 5<div class="translation_compare">
6 <div class="translation_compare_column"> 6 <div class="translation_compare_column">
7 <h2><%= @locale.to_s.upcase %></h2> 7 <h2><%= @locale.to_s.upcase %></h2>
8 <div class="layout_row_label"><%= Page.human_attribute_name(:title) %></div> 8 <div class="layout_row">
9 <div class="layout_row_content"><%= @translation&.title %></div> 9 <div class="layout_row_label"><%= Page.human_attribute_name(:title) %></div>
10 <div class="layout_row_content"><%= @translation&.title %></div>
11 </div>
10 12
11 <div class="layout_row_label"><%= Page.human_attribute_name(:abstract) %></div> 13 <div class="layout_row">
12 <div class="layout_row_content"><%= sanitize(@translation&.abstract.to_s) %></div> 14 <div class="layout_row_label"><%= Page.human_attribute_name(:abstract) %></div>
15 <div class="layout_row_content"><%= sanitize(@translation&.abstract.to_s) %></div>
16 </div>
13 17
14 <div class="layout_row_label"><%= Page.human_attribute_name(:body) %></div> 18 <div class="layout_row">
15 <div class="layout_row_content"><%= sanitize(@translation&.body.to_s) %></div> 19 <div class="layout_row_label"><%= Page.human_attribute_name(:body) %></div>
20 <div class="layout_row_content"><%= sanitize(@translation&.body.to_s) %></div>
21 </div>
16 </div> 22 </div>
17 23
18 <div class="translation_compare_column"> 24 <div class="translation_compare_column">
19 <h2><%= I18n.default_locale.to_s.upcase %> (<%= t(".default_marker") %>)</h2> 25 <h2><%= I18n.default_locale.to_s.upcase %> (<%= t(".default_marker") %>)</h2>
20 <div class="layout_row_label"><%= Page.human_attribute_name(:title) %></div> 26 <div class="layout_row">
21 <div class="layout_row_content"><%= @default_translation&.title %></div> 27 <div class="layout_row_label"><%= Page.human_attribute_name(:title) %></div>
28 <div class="layout_row_content"><%= @default_translation&.title %></div>
29 </div>
22 30
23 <div class="layout_row_label"><%= Page.human_attribute_name(:abstract) %></div> 31 <div class="layout_row">
24 <div class="layout_row_content"><%= sanitize(@default_translation&.abstract.to_s) %></div> 32 <div class="layout_row_label"><%= Page.human_attribute_name(:abstract) %></div>
33 <div class="layout_row_content"><%= sanitize(@default_translation&.abstract.to_s) %></div>
34 </div>
25 35
26 <div class="layout_row_label"><%= Page.human_attribute_name(:body) %></div> 36 <div class="layout_row">
27 <div class="layout_row_content"><%= sanitize(@default_translation&.body.to_s) %></div> 37 <div class="layout_row_label"><%= Page.human_attribute_name(:body) %></div>
38 <div class="layout_row_content"><%= sanitize(@default_translation&.body.to_s) %></div>
39 </div>
28 </div> 40 </div>
29</div> 41</div>