diff options
Diffstat (limited to 'app/views/nodes/show.html.erb')
| -rw-r--r-- | app/views/nodes/show.html.erb | 14 |
1 files changed, 13 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> |
