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/nodes/_node_list.html.erb | 2 +- app/views/nodes/show.html.erb | 4 ++-- app/views/nodes/sitemap.html.erb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/views/nodes') diff --git a/app/views/nodes/_node_list.html.erb b/app/views/nodes/_node_list.html.erb index 1e5d0ed9..0dc3c5a0 100644 --- a/app/views/nodes/_node_list.html.erb +++ b/app/views/nodes/_node_list.html.erb @@ -34,7 +34,7 @@ <%= link_to 'revisions', node_revisions_path(node) %> <%= node.lock_owner.login if node.lock_owner %> - <%= node.draft ? node.draft.revision : (node.head ? node.head.revision : "EMPTY") %> + <%= node.draft ? node.draft.revision : (node.head ? node.head.revision : t(".no_revision")) %> <% end %> diff --git a/app/views/nodes/show.html.erb b/app/views/nodes/show.html.erb index a6167c9e..a94e001c 100644 --- a/app/views/nodes/show.html.erb +++ b/app/views/nodes/show.html.erb @@ -195,12 +195,12 @@
<%= t(".last_updated") %> - <%= @page.updated_at %> + <%= admin_datetime(@page.updated_at) %>
<% if @page.published_at.present? %>
<%= @page.public? ? t(".published_at") : t(".will_publish_at") %> - <%= @page.published_at %> + <%= admin_datetime(@page.published_at) %>
<% end %>
diff --git a/app/views/nodes/sitemap.html.erb b/app/views/nodes/sitemap.html.erb index f749a803..ea64b356 100644 --- a/app/views/nodes/sitemap.html.erb +++ b/app/views/nodes/sitemap.html.erb @@ -23,7 +23,7 @@ <% if next_level && next_level > level %> > - <%= pluralize(@sitemap_descendant_counts[node.id], 'descendant', 'descendants') %> + <%= t(".descendants", :count => @sitemap_descendant_counts[node.id]) %> <% open_details.push(level) %> <% end %> -- cgit v1.3