diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-03 17:12:34 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-03 17:12:34 +0200 |
| commit | 84657fa9d633a7d3e20c10645589061ecebeee3f (patch) | |
| tree | f4bda793d90193db5002d0f2848dc441e9c65c11 /app/views/revisions | |
| parent | a74e40be88cd1331155c967656e393618e88cd27 (diff) | |
Render dates, booleans and counts through the locale files
Diffstat (limited to 'app/views/revisions')
| -rw-r--r-- | app/views/revisions/index.html.erb | 2 | ||||
| -rw-r--r-- | app/views/revisions/show.html.erb | 4 |
2 files changed, 3 insertions, 3 deletions
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 @@ | |||
| 52 | <td class="revision"><%= page.revision %></td> | 52 | <td class="revision"><%= page.revision %></td> |
| 53 | <td class="title"><%= page.translations.find_by(:locale => @translation_locale)&.title || "—" %></td> | 53 | <td class="title"><%= page.translations.find_by(:locale => @translation_locale)&.title || "—" %></td> |
| 54 | <td class="user"><%= page.editor.try(:login) %></td> | 54 | <td class="user"><%= page.editor.try(:login) %></td> |
| 55 | <td class="date"><%= page.updated_at %></td> | 55 | <td class="date"><%= admin_datetime(page.updated_at) %></td> |
| 56 | <td><%= link_to t(".show_link"), node_revision_path(@node, page, :translation_locale => @translation_locale) %></td> | 56 | <td><%= link_to t(".show_link"), node_revision_path(@node, page, :translation_locale => @translation_locale) %></td> |
| 57 | <td> | 57 | <td> |
| 58 | <%= button_to t(".restore_link"), restore_node_revision_path(@node, page), | 58 | <%= 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 @@ | |||
| 22 | <div class="layout_row_content"><%= @page.editor.try(:login) %></div> | 22 | <div class="layout_row_content"><%= @page.editor.try(:login) %></div> |
| 23 | 23 | ||
| 24 | <div class="layout_row_label"><%= t("nodes.show.last_updated") %></div> | 24 | <div class="layout_row_label"><%= t("nodes.show.last_updated") %></div> |
| 25 | <div class="layout_row_content"><%= @page.updated_at %></div> | 25 | <div class="layout_row_content"><%= admin_datetime(@page.updated_at) %></div> |
| 26 | 26 | ||
| 27 | <div class="layout_row_label"><%= t("nodes.show.published_at") %></div> | 27 | <div class="layout_row_label"><%= t("nodes.show.published_at") %></div> |
| 28 | <div class="layout_row_content"><%= @page.published_at %></div> | 28 | <div class="layout_row_content"><%= admin_datetime(@page.published_at) %></div> |
| 29 | 29 | ||
| 30 | <div class="layout_row_label"><%= Page.human_attribute_name(:title) %></div> | 30 | <div class="layout_row_label"><%= Page.human_attribute_name(:title) %></div> |
| 31 | <div class="layout_row_content"><%= translation&.title %></div> | 31 | <div class="layout_row_content"><%= translation&.title %></div> |
