{% extends base.html %} {% block core %} {% if current_user is not None %}

{{ _("Contest overview") }}

{{ _("Announcements") }}

{% if contest.announcements != [] %}
{% for msg in contest.announcements %}
{{ Utils.format_time_or_date(msg.timestamp) }}
{{ msg.subject }}
{{ msg.text }}
{% end %}
{% else %} {{ _("No announcements.") }} {% end %}

{{ _("General information") }}

{% if phase == 0 %}

{{ _("The contest started at %(start_time)s and will end at %(stop_time)s.") % {"start_time": Utils.format_time_or_date(contest.start), "stop_time": Utils.format_time_or_date(contest.stop)} }}

{% elif phase == -1 %}

{{ _("The contest will start at %(start_time)s and will end at %(stop_time)s.") % {"start_time": Utils.format_time_or_date(contest.start), "stop_time": Utils.format_time_or_date(contest.stop)} }}

{% elif phase == 1 %}

{{ _("The contest has ended.") }}

{% end %}
{% else %}

{{ _("Authentication required") }}

{{ _("Please login to continue.") }} {% end %} {% end %}