From 6e812b54e140aa7c64c8e885eb91e24a8efd29c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 9 Mar 2023 17:47:52 +0100 Subject: [PATCH] Fixed: add small button and ACL on document edit --- .../Resources/views/Activity/_list_item.html.twig | 4 ++-- .../Resources/views/Activity/show.html.twig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig index dc8415659..f2430c200 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/_list_item.html.twig @@ -157,7 +157,7 @@ {% endif %} - + {% if is_granted('CHILL_ACTIVITY_SEE_DETAILS', activity) and activity.documents|length > 0 %}
@@ -166,7 +166,7 @@
    {% for d in activity.documents %} -
  • {{ d.title }} {{ d|chill_document_button_group() }}
  • +
  • {{ d.title }} {{ d|chill_document_button_group(d.title, is_granted('CHILL_ACTIVITY_UPDATE', activity), {small: true}) }}
  • {% endfor %}
diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig index 5fe93a3b8..b7a9d7239 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig @@ -170,7 +170,7 @@ {% if entity.documents|length > 0 %}
    {% for d in entity.documents %} -
  • {{ d.title }} {{ d|chill_document_button_group() }}
  • +
  • {{ d.title }} {{ d|chill_document_button_group(d.title, is_granted('CHILL_ACTIVITY_UPDATE', entity), {small: true}) }}
  • {% endfor %}
{% else %}