{% if push.get_count_actionable() == 0 %}
{% 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() | e
~ '' %}
{% 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 'Push' == context %} {% set nb_push_items = push.get_count_actionable() %} {% if push.get_count_not_actionable() == 0 %} {% trans with {'%nb_push_items%' : nb_push_items} %}You are about to push %nb_push_items% records.{% endtrans %} {% else %} {% set nb_not_available = push.get_count_not_actionable() %} {% trans with {'%nb_push_items%' : nb_push_items, '%nb_not_available%' : nb_not_available} %}You are about to push %nb_push_items% records, %nb_not_available% records can not be processed.{% endtrans %} {% endif %} {% else %} {% set nb_push_items = push.get_count_actionable() %} {% if push.get_count_not_actionable() == 0 %} {% trans with {'%nb_push_items%' : nb_push_items} %}You are about to ask for feedback for %nb_push_items% records.{% endtrans %} {% else %} {% set nb_not_available = push.get_count_not_actionable() %} {% trans with {'%nb_push_items%' : nb_push_items, '%nb_not_available%' : nb_not_available} %}You are about to ask for feedback for %nb_push_items% records, %nb_not_available% records can not be processed.{% endtrans %} {% endif %} {% endif %} |