activity template
This commit is contained in:
parent
301f7bb445
commit
16dd919a5d
|
|
@ -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 %}
|
||||||
|
|
@ -24,9 +24,23 @@
|
||||||
} %}
|
} %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'user/userList.html.twig' with {
|
{% include 'user/userList.html.twig' with {
|
||||||
title: 'Mes utilisateurs',
|
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>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 ">
|
<div class="card-title p-3 d-flex justify-content-between align-items-center ">
|
||||||
<h3>{{ title }}</h3>
|
<h3>{{ title }}</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue