summaryrefslogtreecommitdiff
path: root/app/views/nodes
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-08-03 17:12:34 +0200
committererdgeist <erdgeist@erdgeist.org>2026-08-03 17:12:34 +0200
commit84657fa9d633a7d3e20c10645589061ecebeee3f (patch)
treef4bda793d90193db5002d0f2848dc441e9c65c11 /app/views/nodes
parenta74e40be88cd1331155c967656e393618e88cd27 (diff)
Render dates, booleans and counts through the locale files
Diffstat (limited to 'app/views/nodes')
-rw-r--r--app/views/nodes/_node_list.html.erb2
-rw-r--r--app/views/nodes/show.html.erb4
-rw-r--r--app/views/nodes/sitemap.html.erb2
3 files changed, 4 insertions, 4 deletions
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 @@
34 <%= link_to 'revisions', node_revisions_path(node) %> 34 <%= link_to 'revisions', node_revisions_path(node) %>
35 </td> 35 </td>
36 <td><%= node.lock_owner.login if node.lock_owner %></td> 36 <td><%= node.lock_owner.login if node.lock_owner %></td>
37 <td><%= node.draft ? node.draft.revision : (node.head ? node.head.revision : "EMPTY") %></td> 37 <td><%= node.draft ? node.draft.revision : (node.head ? node.head.revision : t(".no_revision")) %></td>
38 </tr> 38 </tr>
39 <% end %> 39 <% end %>
40</table> 40</table>
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 @@
195 <div class="info_group_items"> 195 <div class="info_group_items">
196 <div class="info_item"> 196 <div class="info_item">
197 <span class="info_label"><%= t(".last_updated") %></span> 197 <span class="info_label"><%= t(".last_updated") %></span>
198 <%= @page.updated_at %> 198 <%= admin_datetime(@page.updated_at) %>
199 </div> 199 </div>
200 <% if @page.published_at.present? %> 200 <% if @page.published_at.present? %>
201 <div class="info_item"> 201 <div class="info_item">
202 <span class="info_label"><%= @page.public? ? t(".published_at") : t(".will_publish_at") %></span> 202 <span class="info_label"><%= @page.public? ? t(".published_at") : t(".will_publish_at") %></span>
203 <%= @page.published_at %> 203 <%= admin_datetime(@page.published_at) %>
204 </div> 204 </div>
205 <% end %> 205 <% end %>
206 </div> 206 </div>
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 @@
23 <% if next_level && next_level > level %> 23 <% if next_level && next_level > level %>
24 <details<%= ' open' if sitemap_node_open?(node) %>> 24 <details<%= ' open' if sitemap_node_open?(node) %>>
25 <summary> 25 <summary>
26 <%= pluralize(@sitemap_descendant_counts[node.id], 'descendant', 'descendants') %> 26 <%= t(".descendants", :count => @sitemap_descendant_counts[node.id]) %>
27 </summary> 27 </summary>
28 <% open_details.push(level) %> 28 <% open_details.push(level) %>
29 <% end %> 29 <% end %>