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/events/index.html.erb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'app/views/events') diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index cc3f163d..c4f0a7f9 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -1,10 +1,8 @@ -

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

- -
- <%= link_to new_event_path, class: 'action_button' do %> - <%= icon("plus", library: "tabler", "aria-hidden": true) %> <%= t(".create_event") %> - <% end %> -
+<%= render "shared/page_actions", + :title => t(".title"), + :icon_name => "calendar-plus", + :label => t(".create_event"), + :options => [[t(".create_event"), new_event_path]] %> <%= will_paginate @events %> -- cgit v1.3