{% load i18n %} {% load comments_ink %} {% if user.is_authenticated and is_input_allowed %}
{% csrf_token %}
{% for reaction in object_reactions %}   {% if reaction.counter > max_users_in_tooltip %}{{ reaction.counter }}{% else %}{{ reaction.counter }}{% endif %}
{% if reaction.counter > 0 and reaction.counter > reaction.authors|length %}{% blocktrans with authors=reaction.authors|join:", " label=reaction.label %}{{ authors }} and more reacted with {{ label }}{% endblocktrans %}{% elif reaction.counter > 0 and reaction.counter == reaction.authors|length %}{% blocktrans with authors=reaction.authors|join:", " label=reaction.label %}{{ authors }} reacted with {{ label }}{% endblocktrans %}{% else %}{% blocktrans with label=reaction.label %}Nobody reacted yet with {{ label }}{% endblocktrans %}{% endif %}
{% if not forloop.last %}   {% endif %} {% endfor %}
{% elif is_input_allowed %}
{% for reaction in object_reactions %} &{{ reaction.icon }};    {% if reaction.counter > max_users_in_tooltip %}{{ reaction.counter }}{% else %}{{ reaction.counter }}{% endif %}
{% if reaction.counter > 0 and reaction.counter > reaction.authors|length %}{% blocktrans with authors=reaction.authors|join:", " label=reaction.label %}{{ authors }} and more reacted with {{ label }}{% endblocktrans %}{% elif reaction.counter > 0 and reaction.counter == reaction.authors|length %}{% blocktrans with authors=reaction.authors|join:", " label=reaction.label %}{{ authors }} reacted with {{ label }}{% endblocktrans %}{% else %}{% blocktrans with label=reaction.label %}Nobody reacted yet with {{ label }}{% endblocktrans %}{% endif %}
{% if not forloop.last %}   {% endif %} {% endfor %}
{% else %}
{% for reaction in object_reactions %} {% if reaction.counter %} &{{ reaction.icon }};   {% if reaction.counter > max_users_in_tooltip %}{{ reaction.counter }}{% else %}{{ reaction.counter }}{% endif %}
{% if reaction.counter > 0 and reaction.counter > reaction.authors|length %}{% blocktrans with authors=reaction.authors|join:", " label=reaction.label %}{{ authors }} and more reacted with {{ label }}{% endblocktrans %}{% elif reaction.counter > 0 and reaction.counter == reaction.authors|length %}{% blocktrans with authors=reaction.authors|join:", " label=reaction.label %}{{ authors }} reacted with {{ label }}{% endblocktrans %}{% else %}{% blocktrans with label=reaction.label %}Nobody reacted yet with {{ label }}{% endblocktrans %}{% endif %}
{% if not forloop.last %}   {% endif %} {% endif %} {% endfor %}
{% endif %}