{% extends "contest.html" %} {% set page = "communication" %} {% block core %}
{% if contest.announcements|length > 0 %}

{% trans %}Announcements{% endtrans %}

{% for msg in contest.announcements|reverse %}
{% if msg.subject|length > 0 %}

{{ msg.subject }}

{% else %}

{% trans %}(no subject){% endtrans %}

{% endif %} {{ msg.timestamp|format_datetime_smart }} {% if msg.text|length > 0 %}
{{ msg.text }}
{% endif %}
{% endfor %}
{% endif %} {% if questions_enabled %}

{% trans %}Questions{% endtrans %}

{{ xsrf_form_html|safe }}
{% if actual_phase >= 0 %} {% for task in contest.tasks %}
{% if participation.questions|length > 0 %}
{% for msg in participation.questions|reverse %}
{% if msg.subject|length > 0 %}

{{ msg.subject }}

{% else %}

{% trans %}(no subject){% endtrans %}

{% endif %} {{ msg.question_timestamp|format_datetime_smart }} {% if msg.text|length > 0 %}
{{ msg.text }}
{% endif %}
{% if msg.reply_timestamp is not none %}
{% if msg.reply_subject|length > 0 %}

{{ msg.reply_subject }}

{% else %}

{% trans %}(no subject){% endtrans %}

{% endif %} {{ msg.reply_timestamp|format_datetime_smart }} {% if msg.reply_text|length > 0 %}
{{ msg.reply_text }}
{% endif %}
{% else %}
{% trans %}no answer yet{% endtrans %}
{% endif %} {% endfor %}
{% endif %} {% endif %} {% if participation.messages|length > 0 %}

{% trans %}Messages{% endtrans %}

{% for msg in participation.messages|reverse %}
{% if msg.subject|length > 0 %}

{{ msg.subject }}

{% else %}

{% trans %}(no subject){% endtrans %}

{% endif %} {{ msg.timestamp|format_datetime_smart }} {% if msg.text|length > 0 %}
{{ msg.text }}
{% endif %}
{% endfor %}
{% endif %}
{% endblock core %}