{% import "components/user.html" as user with context %} {% import "components/contest.html" as contest with context %} {%- for tsdoc in tsdocs -%} {{ tsdoc.uid }} {{ user.render_inline(udict[tsdoc.uid], badge=false) }} {% if tsdoc.displayName or (tsdoc.members and tsdoc.members.length) %}
{% if tsdoc.members and tsdoc.members.length %} {{ _('Team') }}: {{ tsdoc.displayName }} — {% for uid in tsdoc.members %} {%- if not loop.first -%}, {% endif -%} {{ user.render_inline(udict[uid], avatar=false, badge=false) }} {%- endfor -%} {% else %} {{ tsdoc.displayName }} {% endif %} {% endif %} {{ contest.render_time(tsdoc.startAt or tdoc.beginAt) }} {{ contest.render_time(tsdoc.endAt or tdoc.endAt) }} {{ _('UnRank') if tsdoc.unrank else _('Rank') }} {{ _('Rank') if tsdoc.unrank else _('UnRank') }} {% if tsdoc.endAt and tsdoc.endAt < tdoc.endAt and tdoc.endAt.getTime() > Date.now() and (not tdoc.duration or not tsdoc.startAt or tsdoc.startAt.getTime() + tdoc.duration * 3600000 > Date.now()) %} | {{ _('Resume') }} {% endif %} {% if tdoc.beginAt.getTime() > Date.now() %} | {{ _('Cancel Registration') }} {% endif %} {%- endfor -%}