From ac01156d00b24d14225c8e75979fb59bba69640d Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 4 Aug 2026 17:13:18 +0200 Subject: Tidy up headings on house keeping views - Collapse page headers into one action row with an optional hint - limit will_paginate to one row --- app/views/nodes/index.html.erb | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'app/views/nodes/index.html.erb') diff --git a/app/views/nodes/index.html.erb b/app/views/nodes/index.html.erb index 357c938b..b88eca06 100644 --- a/app/views/nodes/index.html.erb +++ b/app/views/nodes/index.html.erb @@ -1,10 +1,8 @@ -

<%= t(".title") %>

- -
- <%= link_to new_node_path, class: 'action_button' do %> - <%= icon("plus", library: "tabler", "aria-hidden": true) %> <%= t(".create_node") %> - <% end %> - <%= t(".create_hint") %> -
+<%= render "shared/page_actions", + :title => t(".title"), + :icon_name => "file-plus", + :label => t(".create_node"), + :options => [[t(".create_node"), new_node_path]], + :hint => t(".create_hint") %> <%= render 'node_list' %> -- cgit v1.3