From 8081a5520a441b43a8a7a73f3a90c7aacfaa8e10 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sun, 24 Feb 2019 21:05:27 +0100 Subject: Move everything one level up --- web/kpov_judge/templates/class_tasks.html | 16 ++++ web/kpov_judge/templates/index.html | 16 ++++ web/kpov_judge/templates/params.html | 24 +++++ web/kpov_judge/templates/results.html | 15 +++ web/kpov_judge/templates/task.html | 12 +++ web/kpov_judge/templates/task_greeting.html | 141 ++++++++++++++++++++++++++++ 6 files changed, 224 insertions(+) create mode 100644 web/kpov_judge/templates/class_tasks.html create mode 100644 web/kpov_judge/templates/index.html create mode 100644 web/kpov_judge/templates/params.html create mode 100644 web/kpov_judge/templates/results.html create mode 100644 web/kpov_judge/templates/task.html create mode 100644 web/kpov_judge/templates/task_greeting.html (limited to 'web/kpov_judge/templates') diff --git a/web/kpov_judge/templates/class_tasks.html b/web/kpov_judge/templates/class_tasks.html new file mode 100644 index 0000000..4b6a523 --- /dev/null +++ b/web/kpov_judge/templates/class_tasks.html @@ -0,0 +1,16 @@ + + + +

{{clas.name}}

+ +

+{{ _('Zdravo, %(student)s.', student=student_id) }} + +

+

{{ _('Naloge') }}

+ + diff --git a/web/kpov_judge/templates/index.html b/web/kpov_judge/templates/index.html new file mode 100644 index 0000000..4c2ba47 --- /dev/null +++ b/web/kpov_judge/templates/index.html @@ -0,0 +1,16 @@ + + + +

KPOV Judge

+ +

+{{ _('Zdravo, %(student)s.', student=student_id) }} + +

+

{{ _('Predmeti') }}

+ +
    +{% for c in classes %} +
  • {{c.name}} +{% endfor %} +
diff --git a/web/kpov_judge/templates/params.html b/web/kpov_judge/templates/params.html new file mode 100644 index 0000000..0648f66 --- /dev/null +++ b/web/kpov_judge/templates/params.html @@ -0,0 +1,24 @@ + + + + + +

+{{task_id}} +

+
+

Parametri

+
+{% for k, v in params.items() %} +
{{k}}:
{{params_meta[k]['descriptions']['si']}}
+{% if params_meta[k]["w"] %} + +{% else %} +{{v}} +{% endif %}
+{% endfor %} +

+
+
+ + diff --git a/web/kpov_judge/templates/results.html b/web/kpov_judge/templates/results.html new file mode 100644 index 0000000..7f05208 --- /dev/null +++ b/web/kpov_judge/templates/results.html @@ -0,0 +1,15 @@ + + +

+{{task_id}} +

+

+

Rezultati

+
    +{% for k, v in results.items() %} +
  • {{k}}: {{v}}
  • +{% endfor %} +
+

+ + diff --git a/web/kpov_judge/templates/task.html b/web/kpov_judge/templates/task.html new file mode 100644 index 0000000..ddad5d8 --- /dev/null +++ b/web/kpov_judge/templates/task.html @@ -0,0 +1,12 @@ + + + +

+{{task_id}} +

+

+

{{task}}
+

+ + diff --git a/web/kpov_judge/templates/task_greeting.html b/web/kpov_judge/templates/task_greeting.html new file mode 100644 index 0000000..b10a49d --- /dev/null +++ b/web/kpov_judge/templates/task_greeting.html @@ -0,0 +1,141 @@ + + + +KPOV Judge + + + + +

+ {{task_id}} + [ +{% for lang in ('en', 'si') %} +{{lang}} +{% endfor %} +] +

+ +
+{{ _('Shema omrežja za nalogo.') }} +

{{ _('Naloga') }}

+ +{% include instructions %} + +

+{{ _('Podrobna navodila.') }} +
+

+ +
+
+

{{ _('Računalniki') }}

+{% if computers %} +
+ {% for c in computers %} +
{{c['name']}} +
    + {% for name, disk in c['disk_urls'].items() %} +
  • {{name}} [ {% for fmt in disk['formats'] %}{{fmt}} {% endfor %}] + {% else %} + {% endfor %} +
+{% endfor %} +
+ +

+ +{{ _('Za GNS3 uporabite slike v formatu qcow2, za katere rabite še zaledne datoteke (angl. backing files). Za VirtualBox uporabite slike VMDK, ki ne podpirajo zalednih datotek in so zato precej večje. Namesto prenosa lahko slike VMDK pretvorite iz formata qcow2.') }} + +{% if backing_files %} +

+

{{ _('Zaledne datoteke') }}

+

+{{ _('Vsako od spodnjih slik prenesete samo pri prvi nalogi, v kateri se pojavi. Vse datoteke morajo biti v istem imeniku.') }} + +

+{% for fmt, images in backing_files.items() %} + {% if images %} +
{{fmt}} +
    + {% for image in images %} +
  • {{image}}
  • + {% endfor %} +
+ {% endif %} +{% endfor %} +
+
+{% endif %} + +{% else %} +

{{ _('Slike navideznih diskov so v izdelavi in bodo kmalu na voljo.') }} +{% endif %} +

+ +
+

{{ _('Status') }}

+

+{% if result is none %} +{{ _('Naloga nima še nobenega poskusa.') }} +{% elif result['result'] == 10 %} +{{ _('Naloga je uspešno opravljena dne %(time)s.', time=result['time']) }} +{% else %} +{{ _('Naloga še ni opravljena, najvišji rezultat je %(score)s.', score=result['result']) }} +{% endif %} + +

+{{ _('Program za preverjanje.') }} + +

{{ _('Parametri') }}

+
+{% for p in params if p['value'] %} +
{{ p['name'] }}{% if p['description'] %} … {{ p['description'] }}{% endif %}
+
{{ p['value'] }}
+{% endfor %} +
+
+
+ +{# +

+{% if openstack %} +Openstack projekt za to vajo je že ustvarjen ali v izdelavi (funkcionalnost še ne deluje). +{% else %} +Ustvari Openstack projekt za to vajo (funkcionalnost še ne deluje). +{% endif %} +#} -- cgit v1.2.1