From b8a97d1dc567921906bb750bc0529484bf820975 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 22 Jul 2026 20:04:46 +0200 Subject: Make nodes#show's add event/child buttons look consistent --- app/views/nodes/show.html.erb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index b981e4b..b3987c6 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb @@ -290,7 +290,11 @@ <% end %> <% mapping = default_event_tag_mapping(@page) %> - <%= link_to 'add event', new_event_path(node_id: @node.id, tag_list: mapping&.last, auto_tag_source: mapping&.first, return_to: request.path) %> +

+ <%= link_to new_event_path(node_id: @node.id, tag_list: mapping&.last, auto_tag_source: mapping&.first, return_to: request.path), class: 'action_button' do %> + <%= icon("calendar-plus", library: "tabler", "aria-hidden": true) %> Add event + <% end %> +

<% matches = matching_node_kinds(@node) %> @@ -310,10 +314,11 @@ <% if matches.any? %> <% end %> -- cgit v1.3