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 @@ -
-
- - {{ 'Lists' | trans }} - -
- - - - {{ 'List Manager' | trans }} - +
+ + {{ 'Lists' | trans }}
+ + + + + {{ 'List Manager' | trans }} + +
-
-
-
-
- -
-

- {% 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 %} -

- - +
+
+
+
-
- {% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANADMIN')) %} +

+ {% 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 %} -

- - +
+ {% if app.getAclForUser(app.getAuthenticatedUser()).has_right(constant('\\ACL::CANADMIN')) %} + {% if context == 'Push' %} + + + + {{ 'Add user' | trans }} + {% else %} + + + + {{ 'Add user' | trans }} + {% endif %} + {% endif %} +
+ +
-
-
+
+
@@ -212,8 +209,8 @@ @@ -233,20 +230,19 @@ -
+
- - + +