{% 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() }} {{ macros.parents_list(parents) }}
  • {{ thread.name }}
  • {% trans post=post.pk %}Post #{{ post }} Votes{% endtrans %} {%- endblock %} {% block container %}
    {% if upvotes %}

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

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

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

    {% endif %}

    {% if downvotes %}

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

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

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

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