Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 20 additions & 18 deletions cms/server/contest/templates/communication.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,25 @@ <h4 class="subject empty">{% trans %}(no subject){% endtrans %}</h4>
</div>
{% endif %}

{% if participation.messages|length > 0 %}
<h2>{% trans %}Messages{% endtrans %}</h2>
<div class="message_list">
{% for msg in participation.messages|reverse %}
<div class="message">
{% if msg.subject|length > 0 %}
<h4 class="subject">{{ msg.subject }}</h4>
{% else %}
<h4 class="subject empty">{% trans %}(no subject){% endtrans %}</h4>
{% endif %}
<span class="timestamp">{{ msg.timestamp|format_datetime_smart }}</span>
{% if msg.text|length > 0 %}
<div class="body">{{ msg.text | markdown }}</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}



{% if questions_enabled %}
Expand Down Expand Up @@ -106,24 +125,7 @@ <h4 class="subject empty">{% trans %}(no subject){% endtrans %}</h4>
{% endif %}


{% if participation.messages|length > 0 %}
<h2>{% trans %}Messages{% endtrans %}</h2>
<div class="message_list">
{% for msg in participation.messages|reverse %}
<div class="message">
{% if msg.subject|length > 0 %}
<h4 class="subject">{{ msg.subject }}</h4>
{% else %}
<h4 class="subject empty">{% trans %}(no subject){% endtrans %}</h4>
{% endif %}
<span class="timestamp">{{ msg.timestamp|format_datetime_smart }}</span>
{% if msg.text|length > 0 %}
<div class="body">{{ msg.text | markdown }}</div>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}



</div>
Expand Down