{% extends "cranefly/layout.html" %} {% import "cranefly/macros.html" as macros with context %} {% block title %}{{ macros.page_title(title=(_("Post #%(post)s Votes") % {'post': post.pk}),parent=thread.name) }}{% endblock %} {% block breadcrumb %}{{ super() }} {% for parent in parents %}
  • {{ parent.name }}
  • {% endfor %}
  • {{ thread.name }}
  • {% trans post=post.pk %}Post #{{ post }} Votes{% endtrans %} {%- endblock %} {% block container %}

    {% trans count=upvotes|length, votes=upvotes|length|intcomma -%} One like {%- pluralize -%} {{ votes }} likes {%- endtrans %}

    {% if upvotes %} {% for row in upvotes|batch(4, '') %} {% for vote in row %} {% endfor %} {% endfor %}
    {% if vote %} {{ vote_details(vote, 'thumbs-up') }} {% else %}   {% endif %}
    {% else %}

    {% trans %}Nobody liked this post.{% endtrans %}

    {% endif %}

    {% trans count=downvotes|length, votes=downvotes|length|intcomma -%} One hate {%- pluralize -%} {{ votes }} hates {%- endtrans %}

    {% if downvotes %} {% for row in downvotes|batch(4, '') %} {% for vote in row %} {% endfor %} {% endfor %}
    {% if vote %} {{ vote_details(vote, 'thumbs-down') }} {% else %}   {% endif %}
    {% else %}

    {% trans %}Nobody hated this post.{% endtrans %}

    {% endif %}
    {% endblock %} {% block javascripts %}{{ super() }} {% endblock %} {% macro vote_details(vote, icon) %} {% if vote.user_id %} {{ vote.user_name }}{% else %} {{ vote.user_name }}{% endif %} {% endmacro %}