From 44b503f5289705727f0c06392813face855f60f4 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sun, 9 Aug 2026 14:23:17 +0200 Subject: Give the attach picker and the create-page action their own rows --- app/views/assets/show.html.erb | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'app') diff --git a/app/views/assets/show.html.erb b/app/views/assets/show.html.erb index f31d34e1..60d63290 100644 --- a/app/views/assets/show.html.erb +++ b/app/views/assets/show.html.erb @@ -44,19 +44,28 @@ <% else %> <%= t(".not_attached") %> <% end %> - <%= link_to new_node_path(:asset_id => @asset.id), :class => "action_button" do %> - <%= icon("file-plus", library: "tabler", "aria-hidden": true) %> <%= t(".new_page_with_attachment") %> - <% end %> + + +
<%= t("assets.form.attach_to_page") %>
+
<%= form_tag attach_to_node_asset_path(@asset), :class => "asset_attach_form" do %>
<%= text_field_tag :asset_node_search_term, nil, :placeholder => t("assets.form.attach_search_placeholder"), :autocomplete => "off" %>
- <%= hidden_field_tag :node_id, nil %> - <%= submit_tag t(".attach_button") %> - <%= t("assets.form.attach_hint") %> + <%= button_tag :type => "submit", :class => "action_button" do %> + <%= icon("paperclip", library: "tabler", "aria-hidden": true) %> <%= t(".attach_button") %> + <% end %> + <%= t(".attach_hint") %> + <% end %> +
+ +
<%= t(".new_page") %>
+
+ <%= link_to new_node_path(:asset_id => @asset.id), :class => "action_button" do %> + <%= icon("file-plus", library: "tabler", "aria-hidden": true) %> <%= t(".new_page_with_attachment") %> <% end %>
-- cgit v1.3