{% extends "cranefly/layout.html" %} {% load i18n %} {% load url from future %} {% 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 content %}

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

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

    {% trans %}Nobody has upvoted this post.{% endtrans %}

    {% endif %}

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

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

    {% trans %}Nobody has downvoted this post.{% endtrans %}

    {% endif %} {% endblock %} {% macro vote_details(vote) %}
    {% if vote.user_id %}{{ vote.user_name }}{% else %}{{ vote.user_name }}{% endif %}
    {{ vote.date|reldate }}{% if acl.users.can_see_users_trails() %}, {{ vote.ip }}{% endif %}
    {% endmacro %}