{% extends "base.html" %} {% block title %}{{ quest.title }}{% endblock %} {% block head %} {% if request.user == quest.owner %} {% endif %} {% if request.user == quest.owner %} {% endif %} {% endblock %} {% block header %} {% if request.user == quest.owner %} Edit Quest {% endif %} LIVE Live in: ({% if quest.live_time %}{{ localtime(quest.live_time).strftime('%Y-%m-%d %H:%M') }}{% endif %}) {% if request.session.get("hide_chat") == True %}←{% else %}→{% 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 %}
{{ localtime(post.timestamp).strftime('%Y-%m-%d %H:%M') }} {% if request.user == quest.owner %} {% if post.post_type == "text" %}
Edit {% elif post.post_type == "dice" %}
{% elif post.post_type == "poll" %}
{% endif %} {% endif %}
{% if post.post_type == "text" %} {% autoescape false %} {{ post.post_text }} {% endautoescape %} {% elif post.post_type == "dice" %}

{{ post.post_text }} - {% if post.dicecall.open %}Open{% else %}Closed{% endif %}

{% for dice_roll in dice_rolls.filter(dicecall=post.dicecall) %}
Rolled {{ dice_roll.results }} = {{ dice_roll.total }} ({{ dice_roll.roll }}){% if post.dicecall.dice_challenge %} - {% if dice_roll.total >= post.dicecall.dice_challenge %}Pass{% else %}Fail{% endif %}{% endif %}
{% endfor %} {% elif post.post_type == "poll" %}

{{ post.post_text }} - {% if post.poll.open %}Open{% else %}Closed{% endif %}

{% for option in poll_options.filter(poll=post.poll).order_by("id") %} {% endfor %}
{{ option.text }} {{ poll_votes.filter(option=option).count() }}
{% if post.poll.open and post.poll.allow_writein %}
Write-in:
{% endif %} {% endif %}

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

{% endif %} {% if vars['next_page'] %}
{% endif %}
{% include "quest/chat.html" %} {% endblock %}