You are here

votingapi-widgets-summary.html.twig in Votingapi Widgets 8

{% if results.vote_field_count|default is empty %}
    <p>{% trans %}No votes have been submitted yet.{% endtrans %}</p>
{% else %}
    <p>{% trans %}{{ results.vote_field_count }} votes with an average rating of {{ results.vote_field_average }}.{% endtrans %}</p>
{% endif %}

File

templates/votingapi-widgets-summary.html.twig
View source
  1. {% if results.vote_field_count|default is empty %}
  2. <p>{% trans %}No votes have been submitted yet.{% endtrans %}</p>
  3. {% else %}
  4. <p>{% trans %}{{ results.vote_field_count }} votes with an average rating of {{ results.vote_field_average }}.{% endtrans %}</p>
  5. {% endif %}