From 72e306b583df186129e370021b09b3c0b45f89d1 Mon Sep 17 00:00:00 2001 From: Mathieu Jaumotte Date: Fri, 28 Jan 2022 12:46:58 +0100 Subject: [PATCH] change add notification button color --- .../Resources/views/Activity/show.html.twig | 5 +- ...extension_list_notifications_for.html.twig | 56 +------------------ .../translations/messages.fr.yml | 1 + 3 files changed, 6 insertions(+), 56 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig index aca133d46..d133041a0 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/show.html.twig @@ -188,7 +188,6 @@ {% endif %} - {% set person_id = null %} {% if person %} {% set person_id = person.id %} @@ -206,7 +205,7 @@
  • - + {{ 'notification.Notify'|trans }} @@ -214,7 +213,7 @@ {% if is_granted('CHILL_ACTIVITY_UPDATE', entity) %}
  • + class="btn btn-update">{{ 'Edit'|trans }}
  • {% endif %} {% if is_granted('CHILL_ACTIVITY_DELETE', entity) %} diff --git a/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig b/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig index a7156c5dd..748061891 100644 --- a/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig +++ b/src/Bundle/ChillMainBundle/Resources/views/Notification/extension_list_notifications_for.html.twig @@ -1,63 +1,13 @@ -

    {{ 'notification.Notification'|trans }}

    +

    {{ 'notification.Notifications'|trans }}

    {% for notification in notifications %} {% include 'ChillMainBundle:Notification:_list_item.html.twig' with { - 'action_button': false, 'full_content': true, 'fold_item': true, + 'action_button': true, + 'with_folded_comments': false } %}{# - DISABLED - 'with_folded_comments': true #} {% endfor %}
    - -{# -
    -
    -

    {{ 'notification.Sent'|trans }}

    -
    - - {% for notification in notifications %} -
    - - {% if not notification.isSystem %} - {% if notification.sender == app.user %} - -
    - - {{ notification.date|format_datetime('short','short') }} - - - -
    - - {% if notification.addressees|length > 0 %} - {{ 'notification.to'|trans }}: - {% endif %} - - {% for a in notification.addressees %} - - {{ a|chill_entity_render_string }} - - {% endfor %} - - {% else %} -
    {{ 'notification.you were notified by %sender%'|trans({'%sender%': notification.sender|chill_entity_render_string }) }}
    - {% endif %} - {% else %} -
    {{ 'notification.you were notified by system'|trans }}
    - {% endif %} - -
    - {% endfor %} -
    -#} diff --git a/src/Bundle/ChillMainBundle/translations/messages.fr.yml b/src/Bundle/ChillMainBundle/translations/messages.fr.yml index 3083a6f53..0e093b35f 100644 --- a/src/Bundle/ChillMainBundle/translations/messages.fr.yml +++ b/src/Bundle/ChillMainBundle/translations/messages.fr.yml @@ -396,6 +396,7 @@ Subscribe all steps: Recevoir une notification à chaque étape notification: Notification: Notification + Notifications: Notifications My own notifications: Mes notifications Notify: Envoyer une notification Send: Envoyer