From 84657fa9d633a7d3e20c10645589061ecebeee3f Mon Sep 17 00:00:00 2001 From: erdgeist Date: Mon, 3 Aug 2026 17:12:34 +0200 Subject: Render dates, booleans and counts through the locale files --- app/views/events/without_node.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/views/events/without_node.html.erb') diff --git a/app/views/events/without_node.html.erb b/app/views/events/without_node.html.erb index c610b560..e59eedc7 100644 --- a/app/views/events/without_node.html.erb +++ b/app/views/events/without_node.html.erb @@ -20,11 +20,11 @@ <% @events.each do |event| %> <%= link_to event.display_title, event %> - <%=h event.start_time %> - <%=h event.end_time %> - <%=h event.allday %> → <%= event.allday ? t("admin.common.yes") : t("admin.common.no") %> + <%= admin_datetime(event.start_time) %> + <%= admin_datetime(event.end_time) %> + <%= t("admin.common.#{event.allday ? "yes" : "no"}") %> <%=h event.url %> - <%= link_to t("events.index.edit_link"), edit_event_path(event) %> + <%= external_url_link(event.url) %> <% end %> -- cgit v1.3