{% extends "contest.html" %} {% set page = "printing" %} {% block core %}

{% trans %}Print{% endtrans %}

{% if remaining_jobs > 0 %} {% if pdf_printing_allowed %} {% trans remaining_jobs=remaining_jobs, max_pages=max_pages %}You can print {{ remaining_jobs }} more text or PDF files of up to {{ max_pages }} pages each.{% endtrans %} {% else %} {% trans remaining_jobs=remaining_jobs, max_pages=max_pages %}You can print {{ remaining_jobs }} more text files of up to {{ max_pages }} pages each.{% endtrans %} {% endif %}
{{ xsrf_form_html|safe }}
{% else %} {% trans %}You cannot print anything any more as you have used up your printing quota.{% endtrans %} {% endif %}

{% trans %}Previous print jobs{% endtrans %}

{% set show_date = not printjobs|map(attribute="timestamp")|all("today") %} {% if show_date %} {% else %} {% endif %} {% if show_date %} {% else %} {% endif %} {% for p in printjobs|sort(attribute="timestamp")|reverse %} {% if show_date %} {% else %} {% endif %} {% else %} {% endfor %}
{% trans %}Date and time{% endtrans %}{% trans %}Time{% endtrans %}{% trans %}File name{% endtrans %} {% trans %}Status{% endtrans %}
{{ p.timestamp|format_datetime }}{{ p.timestamp|format_time }}{{ p.filename }} {% if p.done %}{{ p.status|format_status_text }}{% else %}{% trans %}Preparing...{% endtrans %}{% endif %}
{% trans %}no print jobs yet{% endtrans %}
{% endblock core %}