-
-
-
-
{% 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 %}
-
-
-{% 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 %}
- | {% trans %}Date and time{% endtrans %} |
-{% else %}
- {% trans %}Time{% endtrans %} |
-{% endif %}
- {% trans %}File name{% endtrans %} |
- {% trans %}Status{% endtrans %} |
-
-
-
-{% for p in printjobs|sort(attribute="timestamp")|reverse %}
-
- {% if show_date %}
- | {{ p.timestamp|format_datetime }} |
- {% else %}
- {{ p.timestamp|format_time }} |
- {% endif %}
- {{ p.filename }} |
- {% if p.done %}{{ p.status|format_status_text }}{% else %}{% trans %}Preparing...{% endtrans %}{% endif %} |
-
-{% else %}
-
- | {% trans %}no print jobs yet{% endtrans %} |
-
-{% endfor %}
-
-
-
-
-
-{% endblock core %}
diff --git a/cms/service/PrintingService.py b/cms/service/PrintingService.py
deleted file mode 100644
index 73ed924a7b..0000000000
--- a/cms/service/PrintingService.py
+++ /dev/null
@@ -1,259 +0,0 @@
-#!/usr/bin/env python3
-
-# Contest Management System - http://cms-dev.github.io/
-# Copyright © 2014 Fabian Gundlach <320pointsguy@gmail.com>
-# Copyright © 2014 Stefano Maggiolo