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/revisions/index.html.erb | 2 +- app/views/revisions/show.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views/revisions') diff --git a/app/views/revisions/index.html.erb b/app/views/revisions/index.html.erb index d118f96a..3fb33b90 100644 --- a/app/views/revisions/index.html.erb +++ b/app/views/revisions/index.html.erb @@ -52,7 +52,7 @@ <%= page.revision %> <%= page.translations.find_by(:locale => @translation_locale)&.title || "—" %> <%= page.editor.try(:login) %> - <%= page.updated_at %> + <%= admin_datetime(page.updated_at) %> <%= link_to t(".show_link"), node_revision_path(@node, page, :translation_locale => @translation_locale) %> <%= button_to t(".restore_link"), restore_node_revision_path(@node, page), diff --git a/app/views/revisions/show.html.erb b/app/views/revisions/show.html.erb index addcfa1a..1456a051 100644 --- a/app/views/revisions/show.html.erb +++ b/app/views/revisions/show.html.erb @@ -22,10 +22,10 @@
<%= @page.editor.try(:login) %>
<%= t("nodes.show.last_updated") %>
-
<%= @page.updated_at %>
+
<%= admin_datetime(@page.updated_at) %>
<%= t("nodes.show.published_at") %>
-
<%= @page.published_at %>
+
<%= admin_datetime(@page.published_at) %>
<%= Page.human_attribute_name(:title) %>
<%= translation&.title %>
-- cgit v1.3