From 8b6d3c76451d4ece5fd829d0e2d96a00aa19122d Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 22 Jul 2026 20:44:34 +0200 Subject: Add attached nodes subsection in assets#show and thumbnail in nodes#create --- app/views/nodes/new.html.erb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'app/views/nodes/new.html.erb') diff --git a/app/views/nodes/new.html.erb b/app/views/nodes/new.html.erb index 805fbc91..1303e9ed 100644 --- a/app/views/nodes/new.html.erb +++ b/app/views/nodes/new.html.erb @@ -48,6 +48,24 @@ This preview updates as you type. The final path can still be changed afterward by editing the title (for the last segment) or moving the node to a different parent (for everything before it). + <% if @attach_asset %> +
attachment
+
+ + This asset will automatically be attached to the new page. + + <%= hidden_field_tag :asset_id, @attach_asset.id %> +
+ <% end %> +
<%= submit_tag "Create" %>
-- cgit v1.3