diff --git a/templates/web/prod/actions/Push.html.twig b/templates/web/prod/actions/Push.html.twig index 3c554d010e..779ca1fbc7 100644 --- a/templates/web/prod/actions/Push.html.twig +++ b/templates/web/prod/actions/Push.html.twig @@ -56,137 +56,134 @@ -
- {% set recommendation = '' %}
- {% set total = RecommendedUsers|length %}
-
- {% for user in RecommendedUsers %}
- {% if total <= 4 or loop.index <= 4 %}
- {% if recommendation != '' and not loop.last %}
- {% set recommendation = recommendation ~ ', ' %}
- {% elseif recommendation != '' and loop.last %}
- {% set recommendation = recommendation %}
- {% endif %}
- {% set recommendation = recommendation
- ~ ' '
- ~ ''
- ~ user.getDisplayName()
- ~ '' %}
- {% endif %}
- {% endfor %}
-
- {% if total > 4 %}
- {% set n = total - 4 %}
- {% set and_many_more %}
- {% trans with {'%n%' : n} %}and %n% more peoples{% endtrans %}
- {% endset %}
- {% set recommendation = recommendation
- ~ ''
- ~ and_many_more ~ '' %}
- {% endif %}
-
- {% if recommendation != '' %}
- {% set recommendation = '
' ~ recommendation %}
- {% if context == 'Push' %}
- {% trans with {'%recommendation%' : recommendation} %}Please consider send this push to the following users : %recommendation%{% endtrans %}
- {% else %}
- {% trans with {'%recommendation%' : recommendation} %}Please consider send this validation to the following users : %recommendation%{% endtrans %}
- {% endif %}
- {% endif %}
-
+ {% set recommendation = '' %}
+ {% set total = RecommendedUsers|length %}
+
+ {% for user in RecommendedUsers %}
+ {% if total <= 4 or loop.index <= 4 %}
+ {% if recommendation != '' and not loop.last %}
+ {% set recommendation = recommendation ~ ', ' %}
+ {% elseif recommendation != '' and loop.last %}
+ {% set recommendation = recommendation %}
+ {% endif %}
+ {% set recommendation = recommendation
+ ~ ' '
+ ~ ''
+ ~ user.getDisplayName()
+ ~ '' %}
+ {% endif %}
+ {% endfor %}
+
+ {% if total > 4 %}
+ {% set n = total - 4 %}
+ {% set and_many_more %}
+ {% trans with {'%n%' : n} %}and %n% more peoples{% endtrans %}
+ {% endset %}
+ {% set recommendation = recommendation
+ ~ ''
+ ~ and_many_more ~ '' %}
+ {% endif %}
+
+ {% if recommendation != '' %}
+ {% set recommendation = '
' ~ recommendation %}
{% if context == 'Push' %}
-
-
-
- {{ 'Add user' | trans }}
+ {% trans with {'%recommendation%' : recommendation} %}Please consider send this push to the following users : %recommendation%{% endtrans %}
{% else %}
-
-
-
- {{ 'Add user' | trans }}
+ {% trans with {'%recommendation%' : recommendation} %}Please consider send this validation to the following users : %recommendation%{% endtrans %}
{% endif %}
{% endif %}
-
| - - + + |