Fix dates in custom pages admin index

We weren't showing the year when a page was created/updated, and we
were displaying the created date instead of the updated one.

Co-Authored-By: Diego Calvo <diego.calvo@enreda.coop>
This commit is contained in:
Javi Martín
2023-01-22 17:15:13 +01:00
parent d5f440c9bb
commit 119f64ac44
2 changed files with 17 additions and 2 deletions

View File

@@ -21,8 +21,8 @@
<tr id="<%= dom_id(page) %>">
<td><%= page.title %></td>
<td><%= page.slug %></td>
<td><%= I18n.l page.created_at, format: :short %></td>
<td><%= I18n.l page.created_at, format: :short %></td>
<td><%= I18n.l page.created_at, format: :long %></td>
<td><%= I18n.l page.updated_at, format: :long %></td>
<td><%= t("admin.site_customization.pages.page.status_#{page.status}") %></td>
<td>
<%= render Admin::TableActionsComponent.new(page) do |actions| %>