summaryrefslogtreecommitdiff
path: root/app/views/layouts/admin.html.erb
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-31 22:36:17 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-31 22:36:17 +0200
commit529f81b28ed77c62acaa63fad957e751798f2440 (patch)
tree9d928cbe54008b1f75c4b813182970dd0757002c /app/views/layouts/admin.html.erb
parent3b4e1423635fd9f33ae760312e438cc1e484662e (diff)
Warn before the gate refuses, and check restore destinations
nodes#new marks the kinds that place under /updates, derived from each kind's own path_prefix. The three parent pickers mark candidates the current user cannot publish into; menu_search returns needs_redaktion per result, computed per user rather than as a bare restricted flag, and the menu-item picker opts out. restore_from_trash! checks its destination: the restore is the move, applied rather than staged, so no later publish would have caught it. The node returns as a draft either way.
Diffstat (limited to 'app/views/layouts/admin.html.erb')
-rw-r--r--app/views/layouts/admin.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/admin.html.erb b/app/views/layouts/admin.html.erb
index 97117710..43f09b96 100644
--- a/app/views/layouts/admin.html.erb
+++ b/app/views/layouts/admin.html.erb
@@ -18,7 +18,7 @@
18 <%= javascript_tag nonce: true do %> 18 <%= javascript_tag nonce: true do %>
19 var ADMIN_SEARCH_URL = "<%= admin_search_path %>"; 19 var ADMIN_SEARCH_URL = "<%= admin_search_path %>";
20 var ADMIN_MENU_SEARCH_URL = "<%= admin_menu_search_path %>"; 20 var ADMIN_MENU_SEARCH_URL = "<%= admin_menu_search_path %>";
21 var ADMIN_STRINGS = <%= raw({ :lock_lost_prefix => t(".lock_lost_prefix"), :lock_lost_link => t(".lock_lost_link"), :insert_image => t(".insert_image"), :insert_image_tooltip => t(".insert_image_tooltip"), :copied => t(".copied") }.to_json) %>; 21 var ADMIN_STRINGS = <%= raw({ :lock_lost_prefix => t(".lock_lost_prefix"), :lock_lost_link => t(".lock_lost_link"), :insert_image => t(".insert_image"), :insert_image_tooltip => t(".insert_image_tooltip"), :copied => t(".copied"), :needs_redaktion => t(".needs_redaktion") }.to_json) %>;
22 var PARAMETERIZE_PREVIEW_URL = "<%= parameterize_preview_nodes_path %>"; 22 var PARAMETERIZE_PREVIEW_URL = "<%= parameterize_preview_nodes_path %>";
23 var DASHBOARD_SEARCH_URL = "<%= admin_dashboard_search_path %>"; 23 var DASHBOARD_SEARCH_URL = "<%= admin_dashboard_search_path %>";
24 <% end %> 24 <% end %>