From 0d91c5a4aa47fa34e0dfe6742b94aa23d59544bc Mon Sep 17 00:00:00 2001 From: erdgeist Date: Thu, 6 Aug 2026 03:30:47 +0200 Subject: Make the events and assets lists work on a phone --- app/views/events/index.html.erb | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'app/views/events') diff --git a/app/views/events/index.html.erb b/app/views/events/index.html.erb index 51269282..2497a577 100644 --- a/app/views/events/index.html.erb +++ b/app/views/events/index.html.erb @@ -17,7 +17,7 @@ <% @events.each do |event| %> - +
<%= flag("hours-24", Event.human_attribute_name(:allday)) if event.allday %> @@ -41,14 +41,22 @@
- <% if event.rrule.present? %> - <%= event_schedule_text(event) %> - <% if event.humanize_rrule.nil? && event.start_time %> -
<%= admin_date(event.start_time) %>
+
+ <% if event.rrule.present? %> + <% if event.humanize_rrule %> + <%= event_schedule_text(event) %> + <% else %> + + <%= t("events.schedule.unreadable") %> + + <% if event.start_time %> +
<%= admin_date(event.start_time) %>
+ <% end %> + <% end %> + <% else %> + <%= event_date_range(event) %> <% end %> - <% else %> - <%= event_date_range(event) %> - <% end %> +
-- cgit v1.3