{%- if contest.is_in_contest(request.user) and not request.participation.live -%} {% if request.participation.spectate %} {% trans countdown=contest.end_time|as_countdown %}Spectating, contest ends in {{countdown}}.{% endtrans %} {% elif request.participation.end_time %} {% trans countdown=request.participation.end_time|as_countdown %}Participating virtually, {{countdown}} remaining.{% endtrans %} {% else %} {{- _('Participating virtually.') -}} {% endif %} {%- else -%} {% if contest.start_time > now %} {% trans countdown=contest.start_time|as_countdown %}Starting in {{countdown}}.{% endtrans %} {% elif contest.end_time < now %} {{- _('Contest is over.') -}} {% else %} {%- if has_joined -%} {% if live_participation.ended %} {% trans countdown=contest.end_time|as_countdown %}Your time is up! Contest ends in {{countdown}}.{% endtrans %} {% else %} {% trans countdown=live_participation.end_time|as_countdown %}You have {{countdown}} remaining.{% endtrans %} {% endif %} {%- else -%} {% trans countdown=contest.end_time|as_countdown %}Contest ends in {{countdown}}.{% endtrans %} {%- endif -%} {% endif %} {%- endif -%}
{% if contest.time_limit %} {% trans trimmed start_time=contest.start_time|date(_("F j, Y, G:i T")), end_time=contest.end_time|date(_("F j, Y, G:i T")), time_limit=contest.time_limit|timedelta('localized-no-seconds') %} {{ time_limit }} window between {{ start_time }} and {{ end_time }} {% endtrans %} {% else %} {% trans trimmed length=contest.contest_window_length|timedelta("localized-no-seconds"), start_time=contest.start_time|date(_("F j, Y, G:i T")) %} {{ length }} long starting on {{ start_time }} {% endtrans %} {% endif %}
{% if contest.freeze_after and contest.freeze_after + contest.start_time < now %}
{{_("Standing was frozen")}} {{_("at")}} {{ (contest.freeze_after + contest.start_time) | date(_("F j, Y, G:i T")) }}
{% endif %}