From 8c30a43e02c33794cef6c9512a9b2573903380e3 Mon Sep 17 00:00:00 2001 From: BentiGorlich Date: Fri, 14 Jun 2024 13:05:49 +0000 Subject: [PATCH] expose the `apFetchedAt` field of users and magazines for admins (#826) --- templates/components/magazine_box.html.twig | 5 +++++ templates/user/_info.html.twig | 5 +++++ translations/messages.en.yaml | 1 + 3 files changed, 11 insertions(+) diff --git a/templates/components/magazine_box.html.twig b/templates/components/magazine_box.html.twig index 472bbe205..6e2063d07 100644 --- a/templates/components/magazine_box.html.twig +++ b/templates/components/magazine_box.html.twig @@ -42,6 +42,11 @@
  • {{ 'created_at'|trans }}: {{ component('date', {date: computed.magazine.createdAt}) }}
  • + {% if app.user is defined and app.user is not null and app.user.admin() and computed.magazine.apId is not null %} +
  • + {{ 'last_updated'|trans }}: {{ component('date', {date: computed.magazine.apFetchedAt}) }} +
  • + {% endif %}
  • {{ 'subscribers'|trans }}: {{ computed.magazine.subscriptionsCount }}
  • {% endif %} diff --git a/templates/user/_info.html.twig b/templates/user/_info.html.twig index c6ec88255..72ff6552a 100644 --- a/templates/user/_info.html.twig +++ b/templates/user/_info.html.twig @@ -19,6 +19,11 @@ {% endif %}