{# vim: set shiftwidth=2 tabstop=2: #} {{ class_name }} Ocean {% block head_stuff %} {% endblock %} {% macro countdown(status) -%} {% if status['state'] == 'unreleased' %} {% set which = 'release' %} {% elif status['state'] == 'released' %} {% set which = 'due' %} {% elif status['state'] == 'under_review' %} {% set which = 'reviewed' %} {% elif status['state'] == 'revisable' %} {% set which = 'finalized' %} {% elif status['state'] == 'final' %} {% set which = 'finalized' %} {% else %} {% set which = 'due' %} {% endif %}
{% if status[which]['until']|seconds < 0 %} ({{status[which]['until_str']|safe}} ago) {% else %} ({{status[which]['until_str']|safe}} from now) {% endif %}
{%- endmacro %} {% macro due_at(status) -%} {% if status['state'] == 'unreleased' %} {% set which = 'release' %} {% set desc = 'Will be released' %} {% elif status['state'] == 'released' %} {% set which = 'due' %} {% set desc = 'Due' %} {% elif status['state'] == 'under_review' %} {% set which = 'reviewed' %} {% set desc = 'Feedback will be available' %} {% elif status['state'] == 'revisable' %} {% set which = 'finalized' %} {% set desc = 'Revisions due' %} {% elif status['state'] == 'final' %} {% set which = 'finalized' %} {% set desc = 'Finalized' %} {% else %} {% set which = 'due' %} {% set desc = 'Due' %} {% endif %}
{{desc}} {{status[which]['at_str']|safe}}
{%- endmacro %} {% with messages = get_flashed_messages() %} {% if messages %}
{% for msg in messages %}

{{msg|safe}}

{% endfor %}
{% endif %} {% endwith %}
{% if username %} You are logged in as: {{username}}. Click here to log out. {% else %} You are not logged in. Click here to log in. {% endif %}
{% if masquerade_as or task_info["PAUSE_AT"] %}
{% if masquerade_as %}
You are viewing the perspective of: {{masquerade_as}}. Actions you take will affect their account!
{% endif %} {% if task_info["PAUSE_AT"] %}
Your account time has been paused at: {{task_info["PAUSE_AT"]}} Actions you take will work as if they had happened at that time, although timestamps should be accurate to the actual current time.
{% endif %}
{% endif %} {% block main_content %}

Main content goes here.

{% endblock %}