From 6290c20464ad5c622e902b4dd0de217c374b5905 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 6 Aug 2026 01:59:58 +0200 Subject: Reduce the events list to title, when and actions --- app/views/events/index.html.erb | 57 +++++++++++++++++++++++++++++++---------- 1 file changed, 44 insertions(+), 13 deletions(-) (limited to 'app/views/events') diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index 14790526..51269282 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -11,11 +11,7 @@ - - - - - + @@ -24,17 +20,52 @@ + + - - - - - - <% end %>
<%= t("admin.columns.title") %><%= Event.human_attribute_name(:start_time) %><%= Event.human_attribute_name(:end_time) %><%= Event.human_attribute_name(:rrule) %><%= Event.human_attribute_name(:url) %><%= Event.human_attribute_name(:start_node) %><%= t(".when") %>
- <%= flag("clock-off", Event.human_attribute_name(:allday)) if event.allday %> + <%= flag("hours-24", Event.human_attribute_name(:allday)) if event.allday %> + <%= flag("sticker", t(".flag_own_title")) if event.title.present? %> + +
+
<%= link_to event.display_title, event %>
+ <% if event.node %> +
+ <%= icon("file", library: "tabler", "aria-hidden": true) %> + <%= link_to event.node.unique_name, node_path(event.node) %> +
+ <% end %> + <% if event.url.present? %> +
+ <%= icon("external-link", library: "tabler", "aria-hidden": true) %> + <%= external_url_link(event.url) %> +
+ <% end %> +
+
+
+ <% if event.rrule.present? %> + <%= event_schedule_text(event) %> + <% if event.humanize_rrule.nil? && event.start_time %> +
<%= admin_date(event.start_time) %>
+ <% end %> + <% else %> + <%= event_date_range(event) %> + <% end %> +
+
+ + <%= link_to event_path(event), "aria-label" => t("admin.common.show"), + title: t("admin.common.show") do %> + <%= icon("eye", library: "tabler", "aria-hidden": true) %> + <% end %> + + + <%= link_to edit_event_path(event), "aria-label" => t("admin.common.edit"), + title: t("admin.common.edit") do %> + <%= icon("edit", library: "tabler", "aria-hidden": true) %> + <% end %> -
<%= link_to event.display_title, event %>
<%= admin_datetime(event.start_time) %><%= admin_datetime(event.end_time) %><%= rrule_with_break_opportunities(event.rrule) %><%= external_url_link(event.url) %><%= event.node ? link_to(event.node.unique_name, node_path(event.node)) : "" %><%= link_to t(".edit_link"), edit_event_path(event) %>
-- cgit v1.3