summaryrefslogtreecommitdiff
path: root/app/views/nodes
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-22 20:44:34 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-22 20:44:34 +0200
commit8b6d3c76451d4ece5fd829d0e2d96a00aa19122d (patch)
tree9195c97479e42b822931bee9bad037dac8600af0 /app/views/nodes
parentb78a91f158f90343d49a252fc332680108eba18d (diff)
Add attached nodes subsection in assets#show and thumbnail in nodes#create
Diffstat (limited to 'app/views/nodes')
-rw-r--r--app/views/nodes/new.html.erb18
1 files changed, 18 insertions, 0 deletions
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 @@
48 <span class="field_hint">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).</span> 48 <span class="field_hint">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).</span>
49 </div> 49 </div>
50 50
51 <% if @attach_asset %>
52 <div class="node_description">attachment</div>
53 <div class="node_content">
54 <ul class="thumbnail_list">
55 <li>
56 <% if @attach_asset.has_variant?(:thumb) %>
57 <%= image_tag @attach_asset.upload.url(:thumb) %>
58 <% end %>
59 <%= link_to @attach_asset.name, asset_path(@attach_asset),
60 :target => "_blank", :rel => "noopener" %>
61 </li>
62 </ul>
63 <span class="field_hint">This asset will automatically be attached to the new page.</span>
64 <label><%= check_box_tag :asset_headline, "1" %> as the page's headline</label>
65 <%= hidden_field_tag :asset_id, @attach_asset.id %>
66 </div>
67 <% end %>
68
51 <div class="node_description"></div> 69 <div class="node_description"></div>
52 <div class="node_content"><%= submit_tag "Create" %></div> 70 <div class="node_content"><%= submit_tag "Create" %></div>
53 71