{% extends "base.html" %} {% block title %}{{ quest.title }}{% endblock %} {% block head %} {% if request.user == quest.owner %} {##} {% endif %} {##} {% endblock %} {% block header %} {% if request.user == quest.owner %}
  • Edit Quest
  • {% endif %}
  • {% endblock %} {% block content %}

    {{ quest.title }}

    {% for post in posts %} {% if post.post_type == "text" %}
    {% elif post.post_type == "dice" %}
    {% elif post.post_type == "poll" %}
    {% endif %}
    {{ post.timestamp.strftime('%Y-%m-%d %H:%M') }} {% if request.user == quest.owner %} {% if post.post_type == "text" %}
    Edit {% elif post.post_type in ("dice", "poll") and post == posts|last %}
    {% endif %} {% endif %}
    {% if post.post_type == "text" %} {% autoescape false %} {{ post.post_text }} {% endautoescape %} {% elif post.post_type == "dice" %}

    {{ post.post_text }} - {% if post.id == quest.open_post_id %}Open{% else %}Closed{% endif %}

    {# for dice_roll in dice_rolls.get(post.id, []) %}
    Rolled {{ dice_roll[4] }} = {{ dice_roll[5] }} ({{ dice_roll[3] }}){% if post.id|dice_chal != 0 %} - {% if dice_roll[5] >= post.id|dice_chal %}Pass{% else %}Fail{% endif %}{% endif %}
    {% endfor #}

    {{ post.post_test }} - {% if post.id == quest.open_post_id %}Open{% else %}Closed{% endif %}

    {# for option in options.get(post.id, []) %} {% endfor #}
    {{ option[2] }} {{ poll_votes.get(option[0], [])|length }}
    {# if post.id == quest.open_post_id and post.id|is_write_in %}
    Write-in:
    {% endif #} {% endif %}

    {% endfor %}
    {% if request.user == quest.owner %}

    {% endif %}


    Chat

    {% autoescape false %} {# for message in messages %}
    Anonymous {{ message[3] | strftime }} No.{{ message[0] }}
    {{ message[4] }}

    {% endfor #} {% endautoescape %}
    {% endblock %}