summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-07 20:22:37 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-07 20:22:37 +0200
commit278819cad2d2199029cc11124c95b0155f83f821 (patch)
treec98cada36cbec18a5e0c2bc1e17ef3370a9adbe8 /app/views
parente7b12a7e50e6bdb64ccaa1180d606465485a8439 (diff)
Show a pending address in the cockpit, the diff and the publish confirm
Diffstat (limited to 'app/views')
-rw-r--r--app/views/nodes/show.html.erb14
-rw-r--r--app/views/revisions/diff.html.erb10
2 files changed, 23 insertions, 1 deletions
diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb
index 3b2d28d9..a826be37 100644
--- a/app/views/nodes/show.html.erb
+++ b/app/views/nodes/show.html.erb
@@ -50,8 +50,13 @@
50 <% if @node.draft && !@node.autosave && !@node.in_trash? && !@node.trash_node? %> 50 <% if @node.draft && !@node.autosave && !@node.in_trash? && !@node.trash_node? %>
51 <div class="info_item"> 51 <div class="info_item">
52 <% if may_change_live %> 52 <% if may_change_live %>
53 <% confirm = t(".confirm_publish") %>
54 <% if @node.prospective_unique_name != @node.unique_name %>
55 <% confirm += " " + t(".confirm_publish_moves",
56 :path => @node.prospective_unique_name) %>
57 <% end %>
53 <%= button_to t(".publish"), publish_node_path(@node), method: :put, 58 <%= button_to t(".publish"), publish_node_path(@node), method: :put,
54 form: { data: { confirm: t(".confirm_publish") }, class: 'button_to state_changing' } %> 59 form: { data: { confirm: confirm }, class: 'button_to state_changing' } %>
55 <% else %> 60 <% else %>
56 <span class="disabled_action"><%= t(".publish") %></span> 61 <span class="disabled_action"><%= t(".publish") %></span>
57 <% end %> 62 <% end %>
@@ -223,6 +228,13 @@
223 locale_param = ->(locale) { locale unless locale == I18n.default_locale } 228 locale_param = ->(locale) { locale unless locale == I18n.default_locale }
224 %> 229 %>
225 230
231 <% if @node.prospective_unique_name != @node.unique_name %>
232 <p class="pending_address">
233 <%= icon("arrow-move-right", library: "tabler", "aria-hidden": true) %>
234 <%= t(".pending_address", :path => @node.prospective_unique_name) %>
235 </p>
236 <% end %>
237
226 <div class="link_matrix link_matrix_<%= link_locales.size %>"> 238 <div class="link_matrix link_matrix_<%= link_locales.size %>">
227 <div class="link_matrix_head"> 239 <div class="link_matrix_head">
228 <span></span> 240 <span></span>
diff --git a/app/views/revisions/diff.html.erb b/app/views/revisions/diff.html.erb
index 5c881f24..0fd9ccb9 100644
--- a/app/views/revisions/diff.html.erb
+++ b/app/views/revisions/diff.html.erb
@@ -115,6 +115,16 @@
115 <%= raw @diff[:body] %> 115 <%= raw @diff[:body] %>
116 <% end %> 116 <% end %>
117 117
118 <h3><%= t(".address") %></h3>
119 <% if @diff[:address][:changed] %>
120 <p>
121 <del><%= @diff[:address][:from] || t(".none_marker") %></del>
122 <ins><%= @diff[:address][:to] || t(".none_marker") %></ins>
123 </p>
124 <% else %>
125 <p class="diff_unchanged"><%= t(".no_change") %></p>
126 <% end %>
127
118 <h3><%= Page.human_attribute_name(:tag_list) %></h3> 128 <h3><%= Page.human_attribute_name(:tag_list) %></h3>
119 <% if @diff[:tags][:added].empty? && @diff[:tags][:removed].empty? %> 129 <% if @diff[:tags][:added].empty? && @diff[:tags][:removed].empty? %>
120 <p class="diff_unchanged"><%= t(".no_change") %></p> 130 <p class="diff_unchanged"><%= t(".no_change") %></p>