From de9a3a5591d4b17c0e0f17abc0ee8ffe85de50e6 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 14:24:03 +0200 Subject: Extract admin strings to i18n: assets and events clusters --- app/views/events/show.html.erb | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'app/views/events/show.html.erb') diff --git a/app/views/events/show.html.erb b/app/views/events/show.html.erb index 0bf14e8b..98e972c6 100644 --- a/app/views/events/show.html.erb +++ b/app/views/events/show.html.erb @@ -1,55 +1,55 @@
-

<%= @event.node ? "Event for node #{@event.node.unique_name}" : "Event" %>

+

<%= @event.node ? t(".title_for_node", :path => @event.node.unique_name) : t(".title") %>

-
Actions
+
<%= t("admin.columns.actions") %>
<% if @event.node %>
- <%= link_to 'Node', node_path(@event.node) %> + <%= link_to t(".node_link"), node_path(@event.node) %>
<% end %>
<%= link_to edit_event_path(@event, return_to: request.path), class: 'action_button' do %> - <%= icon("edit", library: "tabler", "aria-hidden": true) %> Edit + <%= icon("edit", library: "tabler", "aria-hidden": true) %> <%= t("admin.common.edit") %> <% end %>
- <%= button_to event_path(@event), method: :delete, form: { data: { confirm: 'Delete this event?' }, class: 'button_to destructive' } do %> - <%= icon("trash", library: "tabler", "aria-hidden": true) %> Destroy + <%= button_to event_path(@event), method: :delete, form: { data: { confirm: t("events.confirm_delete") }, class: 'button_to destructive' } do %> + <%= icon("trash", library: "tabler", "aria-hidden": true) %> <%= t("admin.common.destroy") %> <% end %>
-
Start time
+
<%= Event.human_attribute_name(:start_time) %>
<%=h @event.start_time %>
-
End time
+
<%= Event.human_attribute_name(:end_time) %>
<%=h @event.end_time %>
-
Rrule
+
<%= Event.human_attribute_name(:rrule) %>
<%=h @event.rrule %>
<% if (human = @event.humanize_rrule(I18n.locale)) %> -
Recurrence
+
<%= t(".recurrence") %>
<%= human %>
<% end %> -
Tags
+
<%= Event.human_attribute_name(:tag_list) %>
<%=h @event.tag_list %>
-
Allday
-
<%=h @event.allday %>
+
<%= Event.human_attribute_name(:allday) %>
+
<%= @event.allday ? t("admin.common.yes") : t("admin.common.no") %>
-
Url
+
<%= Event.human_attribute_name(:url) %>
<%=h @event.url %>
-
Latitude
+
<%= Event.human_attribute_name(:latitude) %>
<%=h @event.latitude %>
-
Longitude
+
<%= Event.human_attribute_name(:longitude) %>
<%=h @event.longitude %>
-- cgit v1.3