{% load i18n creme_listview creme_widgets %} {% with paginator=summary.acts.paginator %}
{% if paginator.count == 0 %} {% translate 'Commercial actions' %} {% else %} {% blocktranslate count count=paginator.count %}{{count}} Commercial action{% plural %}{{count}} Commercial actions{% endblocktranslate %} {% endif %} {% if paginator.count == 0 %} — {% elif paginator.num_pages > 1 %} {% translate 'See details' %} {% else %} {% for act in summary.acts %}{% widget_join %}{% widget_entity_hyperlink act user %}{% end_widget_join %}{% endfor %} {% endif %}
{% endwith %} {% comment %} {% load i18n creme_widgets %} {% if acts is not None %}
{% if acts|length == 0 %} {% translate 'Commercial actions' %} {% else %} {% blocktranslate count count=acts|length %}{{count}} Commercial action{% plural %}{{count}} Commercial actions{% endblocktranslate %} {% endif %} {% for act in acts %}{% widget_join %}{% widget_entity_hyperlink act user %}{% end_widget_join %}{% empty %}—{% endfor %}
{% endif %} {% endcomment %}