From 16dd919a5da4ebe760b32e9a1e233414a28fe00d Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 28 Jul 2025 16:23:47 +0200 Subject: [PATCH] activity template --- templates/organization/activity.html.twig | 22 ++++++++++++++++++++++ templates/organization/show.html.twig | 20 +++++++++++++++++--- templates/user/userListSmall.html.twig | 2 +- 3 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 templates/organization/activity.html.twig diff --git a/templates/organization/activity.html.twig b/templates/organization/activity.html.twig new file mode 100644 index 0000000..60ad84d --- /dev/null +++ b/templates/organization/activity.html.twig @@ -0,0 +1,22 @@ +{% block body %} +

{{ title }}

+ +
+ +
+{# {% if activities|length == 0 %}#} +{#

Aucune activité récente.

#} +{# {% else %}#} +
    +{# {% for activity in activities %}#} +
  • +{# {{ activity.timestamp|date('Y-m-d H:i') }} - #} +{# {{ activity.user.name }} a {{ activity.action }} sur {{ activity.targetType }}: #} +{# {{ activity.targetName }}#} +

    5 mins ago

    +
  • +{# {% endfor %}#} +
+{# {% endif %}#} +
+{% endblock %} \ No newline at end of file diff --git a/templates/organization/show.html.twig b/templates/organization/show.html.twig index 6713e19..9939c02 100644 --- a/templates/organization/show.html.twig +++ b/templates/organization/show.html.twig @@ -24,9 +24,23 @@ } %}
- {% include 'user/userList.html.twig' with { - title: 'Mes utilisateurs', - } %} + {% include 'user/userList.html.twig' with { + title: 'Mes utilisateurs', + } %} + +{#
#} +{#
#} +{# {% include 'user/userList.html.twig' with {#} +{# title: 'Mes utilisateurs',#} +{# } %}#} +{#
#} +{#
#} +{# {% include 'organization/activity.html.twig' with {#} +{# title: 'Activités récentes',#} +{# empty_message: 'Aucune activité récente.'#} +{# } %}#} +{#
#} +{#
#} {% endblock %} diff --git a/templates/user/userListSmall.html.twig b/templates/user/userListSmall.html.twig index 1549478..7d5ee00 100644 --- a/templates/user/userListSmall.html.twig +++ b/templates/user/userListSmall.html.twig @@ -1,4 +1,4 @@ -
+

{{ title }}