{% extends "sphene/sphboard/base.html" %} {% load i18n %} {% load sph_extras %} {% load sphboard_extras %} {% load sph_pagination %} {% block head %} {{ block.super }} {% endblock %} {% block stylesheets %} {{ block.super }} {% endblock %} {% block content %} {% block sphboard_breadcrumb %} {% sphboard_displayBreadcrumbsForThread thread %} {% endblock %} {% if thread.allow_sticking or thread.allow_locking or thread.allow_moving %} {% trans "Thread Options:" %} {% if thread.allow_sticking %} {% if thread.is_sticky %} [ {% trans "Remove Sticky" %} ] {% else %} [ {% trans "Make Sticky" %} ] {% endif %} {% endif %} {% if thread.allow_locking %} [ {% if thread.is_closed %}{% trans "Unlock Thread" %}{% else %}{% trans "Lock Thread" %}{% endif %} ] {% endif %} {% if thread.allow_moving %} [ {% trans "Move Thread" %} ] {% endif %} {% comment %}
{% endcomment %} {% endif %}
{% if user.is_authenticated %} {% if thread.has_monitor %} {% if thread.has_direct_monitor %} {% trans "You are currently receiving email notifications on new posts." %} - {% trans "Stop notifications" %} {% else %} {% trans "You are currently receiving email notifications on new posts because you subscribed to a parent category." %} {% endif %} {% else %} {% trans "Notify me by email on new posts." %} {% endif %}

{% endif %} {% block above_post_list %}

{% sph_pagination pages page '' 'page' 1 %}

{% endblock %} {% for post in post_list %} {% block post_list_element %} {% ifequal post thread %} {% if post.poll %} {% endif %} {% endifequal %} {% endblock %} {% endfor %}
{% if post.allow_annotating %} [ {% trans "Annotate/Hide" %} ] {% endif %} {% if post.allowEditing %} [ {% trans "Edit" %} ] {% endif %} {% if post.allowHiding %} [ {% trans "Delete" %} ] {% endif %} {% if post.allowMovingPost %} [ {% trans "Move" %} ] {% endif %} {% if allowPosting %} [ {% trans "Quote" %} ] {% endif %}
{% block post_body %} {% if post.is_annotated %} {% if post.annotation.get.hide_post %}
{% trans "Post hidden by" %} {% sphboard_displayUserName post.annotation.get.author %}:
{{ post.annotation.get.body_escaped }}
{% else %}
{% trans "Post annotated by" %} {% sphboard_displayUserName post.annotation.get.author %}: {{ post.annotation.get.body_escaped }}
{{ post.body_escaped }} {% endif %} {% else %} {{ post.body_escaped }} {% endif %} {% with post.attachments.all as allattachments %} {% if allattachments|length %}
{% trans "Attachments" %}
{% endif %} {% endwith %} {% endblock post_body %}

{% trans "Poll:" %} {{ post.poll.question }}

{% if post.poll.allow_editing %}

[ {% trans "Edit this poll" %} ]

{% endif %} {% if post.poll.has_voted %}

{% trans "You already voted. Here are the results" %} ({{ post.poll.total_voters }} {% trans "votes total" %} - {% widthratio post.poll.null_votes post.poll.total_votes 100 %}% {% trans "did not answer" %}):

{% for choice in post.poll.choices %} {% endfor %}
{% widthratio choice.count post.poll.total_votes 100 %}%  
{{ choice.choice }}
{% else %}
{% csrf_token %} {% if request.attributes.voteerror %} {% trans "Error:" %} {{ request.attributes.voteerror }}
{% endif %} {% if post.poll.multiplechoice %} {% blocktrans with post.poll.choices_per_user as choices_per_user %}You may select up to {{ choices_per_user }} answers: {% endblocktrans %}
    {% for choice in post.poll.choices %}
  • {% endfor %}
{% else %}
    {% for choice in post.poll.choices %}
  • {% endfor %}
{% endif %} {% if user.is_authenticated %} {% else %} {% trans "You need to be logged in to vote." %} {% endif %}
{% endif %}

{% sph_pagination pages page '' 'page' 1 %}

{% if allowPosting %} {% if sph_settings.board_quick_reply %} {% sphboard_quick_reply thread %} {% else %} {% trans "Post Reply" %} {% endif %} {# sphboard_displayPostForm thread #} {% else %} {% if thread.is_closed %} {% trans "Thread is locked." %} {% else %} {% if thread.category.allows_replies %} {% if user.is_authenticated %} {% trans "You have no permission to post a reply." %} {% else %} {% trans "Please login to post a reply." %} {% endif %} {% endif %} {% endif %} {% endif %}

{% endblock %}