activity template

This commit is contained in:
Charles 2025-07-28 16:23:47 +02:00
parent 301f7bb445
commit 16dd919a5d
3 changed files with 40 additions and 4 deletions

View File

@ -0,0 +1,22 @@
{% block body %}
<h3> {{ title }}</h3>
<div class="card">
<div class="card-body">
{# {% if activities|length == 0 %}#}
{# <p>Aucune activité récente.</p>#}
{# {% else %}#}
<ul class="list-group">
{# {% for activity in activities %}#}
<li class="list-group-item">
{# <strong>{{ activity.timestamp|date('Y-m-d H:i') }}</strong> - #}
{# {{ activity.user.name }} a {{ activity.action }} sur {{ activity.targetType }}: #}
{# <a href="{{ path(activity.targetPath) }}">{{ activity.targetName }}</a>#}
<p> 5 mins ago</p>
</li>
{# {% endfor %}#}
</ul>
{# {% endif %}#}
</div>
{% endblock %}

View File

@ -24,9 +24,23 @@
} %}
</div>
</div>
{% include 'user/userList.html.twig' with {
title: 'Mes utilisateurs',
} %}
{% include 'user/userList.html.twig' with {
title: 'Mes utilisateurs',
} %}
{# <div class="row">#}
{# <div class="col-9 m-auto">#}
{# {% include 'user/userList.html.twig' with {#}
{# title: 'Mes utilisateurs',#}
{# } %}#}
{# </div>#}
{# <div class="col-3 m-auto">#}
{# {% include 'organization/activity.html.twig' with {#}
{# title: 'Activités récentes',#}
{# empty_message: 'Aucune activité récente.'#}
{# } %}#}
{# </div>#}
{# </div>#}
</div>
{% endblock %}

View File

@ -1,4 +1,4 @@
<div class="card card-bor">
<div class="card">
<div class="card-title p-3 d-flex justify-content-between align-items-center ">
<h3>{{ title }}</h3>
</div>