{% set tdocs = payload[0] %} {% set tsdict = payload[1] %} {% if tdocs.length %}

{{ _('Contest') }}

    {%- for tdoc in tdocs -%}
  1. {{ datetimeSpan(tdoc['beginAt'], false, 'D')|safe }}
    {{ datetimeSpan(tdoc['beginAt'], false, 'YYYY-M')|safe }}

    {{ tdoc.title }}

    • {{ _(model.contest.RULES[tdoc.rule].TEXT) }}
    • {% if tdoc.rated %}
    • Rated
    • {% endif %}
    • {{ contest.render_duration(tdoc) }} {{ _('hour(s)') }}
    • {{ tdoc['attend']|default(0) }}
    • {% if tsdict[tdoc.docId]['attend'] == 1 %}
    • {{ _('Attended') }}
    • {% endif %}
  2. {%- endfor -%}
{% endif %}