From 278819cad2d2199029cc11124c95b0155f83f821 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Fri, 7 Aug 2026 20:22:37 +0200 Subject: Show a pending address in the cockpit, the diff and the publish confirm --- app/views/nodes/show.html.erb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'app/views/nodes') 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 @@ <% if @node.draft && !@node.autosave && !@node.in_trash? && !@node.trash_node? %>
<% if may_change_live %> + <% confirm = t(".confirm_publish") %> + <% if @node.prospective_unique_name != @node.unique_name %> + <% confirm += " " + t(".confirm_publish_moves", + :path => @node.prospective_unique_name) %> + <% end %> <%= button_to t(".publish"), publish_node_path(@node), method: :put, - form: { data: { confirm: t(".confirm_publish") }, class: 'button_to state_changing' } %> + form: { data: { confirm: confirm }, class: 'button_to state_changing' } %> <% else %> <%= t(".publish") %> <% end %> @@ -223,6 +228,13 @@ locale_param = ->(locale) { locale unless locale == I18n.default_locale } %> + <% if @node.prospective_unique_name != @node.unique_name %> +

+ <%= icon("arrow-move-right", library: "tabler", "aria-hidden": true) %> + <%= t(".pending_address", :path => @node.prospective_unique_name) %> +

+ <% end %> +