summaryrefslogtreecommitdiff
path: root/kpov_judge/web/kpov_judge/templates/task_greeting.html
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/web/kpov_judge/templates/task_greeting.html')
-rw-r--r--kpov_judge/web/kpov_judge/templates/task_greeting.html36
1 files changed, 23 insertions, 13 deletions
diff --git a/kpov_judge/web/kpov_judge/templates/task_greeting.html b/kpov_judge/web/kpov_judge/templates/task_greeting.html
index 49288e3..ee27853 100644
--- a/kpov_judge/web/kpov_judge/templates/task_greeting.html
+++ b/kpov_judge/web/kpov_judge/templates/task_greeting.html
@@ -56,37 +56,47 @@ section > ul {
<section class="data">
<section class="disks">
<h1>{{ _('Računalniki') }}</h1>
+{% if computers %}
<p>
-{{ _('Slike diskov za to nalogo:') }}
+{{ _('Za GNS3 uporabite slike v formatu qcow2 ali VMDK, za katere rabite še zaledne datoteke (angl. <em lang="en">backing files</em>). VirtualBox ne podpira zalednih datotek, zato so slike VDI precej večje. Namesto prenosa lahko slike VDI <a href="">dobite iz formata qcow2 ali VMDK</a>.') }}
{% for c in computers %}
<ul>
<li>{{c['name']}}
- {% if 'disk_urls' in c %}
<ul>
- {% for u in c['disk_urls'] %}
- <li><a href="{{disk_base_url+u['file']}}">{{u['name']}}</a>
+ {% for name, disk in c['disk_urls'].items() %}
+ <li>{{name}} [ {% for fmt in disk['formats'] %}<a href="{{disk_base_url+disk[fmt][0]}}">{{fmt}}</a> {% endfor %}]
+ {% else %}
{% endfor %}
</ul>
- {% else %}
- <br>{{ _('Slike navideznih diskov so v izdelavi in bodo kmalu na voljo.') }}
- {% endif %}
</ul>
{% endfor %}
+{% if backing_files %}
<section>
-{% if backing_images %}
-<h1>{{ _('Osnovne slike') }}</h1>
+<h1>{{ _('Zaledne datoteke') }}</h1>
<p>
-{{ _('Te slike so enake za vse naloge. Prenesite samo tiste, ki jih še nimate.') }}
+{{ _('Vsako od spodnjih slik prenesete samo pri prvi nalogi, v kateri se pojavi. Vse datoteke morajo biti v istem imeniku.') }}
<ul>
-{% for b in backing_images %}
- <li><a href="{{disk_base_url+b}}">{{b}}</a></li>
+{% for fmt, images in backing_files.items() %}
+ {% if images %}
+ <li>{{fmt}}
+ <ul>
+ {% for image in images %}
+ <li><a href="{{disk_base_url+image}}">{{image}}</a></li>
+ {% endfor %}
+ </ul>
+ </li>
+ {% endif %}
{% endfor %}
</ul>
-{% endif %}
</section>
+{% endif %}
+
+{% else %}
+ <p>{{ _('Slike navideznih diskov so v izdelavi in bodo kmalu na voljo.') }}
+{% endif %}
</section>
<section>