{% extends "base.html" %} {% block js %} function question_reply_toggle(element, invoker) { var obj = document.getElementsByClassName("reply_question")[element]; if (obj.style.display != "block") { obj.style.display = "block"; invoker.innerHTML = "Hide reply"; } else { obj.style.display = "none"; invoker.innerHTML = "Reply"; } return false; } function update_additional_answer(element, invoker) { var obj = document.getElementsByClassName("alternative_answer")[element]; if (invoker.selectedIndex == 5) obj.style.display = "block"; else obj.style.display = "none"; } {% endblock js %} {% block js_init %} utils.show_page("questions", 1); {% endblock js_init %} {% block core %}

Questions

{% if questions != [] %}
{% for msg in questions %}
{{ msg.participation.user.username }} — {{ msg.question_timestamp }}
{{ msg.subject }}
{{ msg.text }}
{% if msg.reply_timestamp is not none %}
Reply: {{ msg.reply_subject }}
{{ msg.reply_text }}

Reply from: {{ msg.admin.name if msg.admin is not none else "" }}
{% else %}
Not yet replied.

{% if msg.admin is not none %}
{{ "Ignored" if msg.ignored else "Claimed" }} by: {{ msg.admin.name }}
{% endif %} {% endif %} {% if admin.permission_all or admin.permission_messaging %} {% if msg.reply_timestamp is none %} {% if not msg.ignored %}
{{ xsrf_form_html|safe }} {% if msg.admin is none %} Claim {% else %} Unclaim {% endif %}
{% endif %}
{{ xsrf_form_html|safe }} {% if not msg.ignored %} Ignore {% else %} Unignore {% endif %}
{% endif %}

{{ xsrf_form_html|safe }} Precompiled answer:
Alternative answer:

{% endif %}
{% endfor %}
{% else %} No questions. {% endif %} {% endblock core %}