mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
44 lines
1.4 KiB
Twig
44 lines
1.4 KiB
Twig
{% extends "@ChillPerson/Person/layout.html.twig" %}
|
|
|
|
{% set activeRouteKey = 'chill_activity_activity_list' %}
|
|
|
|
{% block title 'Show the activity'|trans %}
|
|
|
|
{% block js %}
|
|
{{ parent() }}
|
|
{{ encore_entry_script_tags('mod_notification_toggle_read_status') }}
|
|
{{ encore_entry_link_tags('mod_async_upload') }}
|
|
{% endblock %}
|
|
|
|
{% block css %}
|
|
{{ parent() }}
|
|
{{ encore_entry_link_tags('mod_notification_toggle_read_status') }}
|
|
{{ encore_entry_link_tags('mod_async_upload') }}
|
|
{% endblock %}
|
|
|
|
{% import 'ChillActivityBundle:ActivityReason:macro.html.twig' as m %}
|
|
|
|
{% block personcontent -%}
|
|
<div class="activity-show">
|
|
{% include 'ChillActivityBundle:Activity:show.html.twig' with {'context': 'person'} %}
|
|
</div>
|
|
{% endblock personcontent %}
|
|
|
|
{% block block_post_menu %}
|
|
<div class="post-menu pt-4">
|
|
|
|
<div class="d-grid gap-2">
|
|
<a class="btn btn-primary" href="{{ chill_path_add_return_path('chill_main_notification_create', {'entityClass': 'Chill\\ActivityBundle\\Entity\\Activity', 'entityId': entity.id}) }}">
|
|
<i class="fa fa-paper-plane fa-fw"></i>
|
|
{{ 'notification.Notify'|trans }}
|
|
</a>
|
|
</div>
|
|
|
|
{% set notifications = chill_list_notifications('Chill\\ActivityBundle\\Entity\\Activity', entity.id) %}
|
|
{% if notifications is not empty %}
|
|
{{ notifications|raw }}
|
|
{% endif %}
|
|
|
|
</div>
|
|
{% endblock %}
|