summaryrefslogtreecommitdiff
path: root/kpov_judge/web/kpov_judge/templates/task_greeting.html
blob: 18257269a507654025395411e80108d46f6facd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<html lang="{{lang}}">

<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<style>
img.setup {
    border: 1px solid black;
    border-radius: 0.2em;
    float: right;
    margin-left: 1.5em;
    max-width: 20em;
}
section.data {
    clear: both;
    columns: 2;
}
section.data > section {
    display: inline-block;
}
section.disks > section > h1 {
    margin-bottom: 0;
}
section ul {
    list-style-position: inside;
    margin: 0;
    margin-left: 1em;
    padding-left: 0;
}
section > ul {
    margin-top: 0.5em;
}
</style>

<h1><a href="{{ url_for('class_tasks', class_id=class_id) }}" class="back">↩</a> {{task_id}}</h1>

<section>
<a href="setup.png"><img src="setup.png" class="setup"></a>

{% include instructions %}

<p>
<a href="howto/">{{ _('Podrobna navodila.') }}</a>
</section>

<section class="data">
<section class="disks">
<h1>{{ _('Računalniki') }}</h1>
<p>
{{ _('Slike diskov za to nalogo:') }}

{% 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>
    {% endfor %}
  </ul>
  {% else %}
    <br>{{ _('Slike navideznih diskov so v izdelavi in bodo kmalu na voljo.') }}
  {% endif %}
  </ul>
{% endfor %}

<section>
{% if backing_images %}
<h1>{{ _('Osnovne slike') }}</h1>
<p>
{{ _('Te slike so enake za vse naloge. Prenesite samo tiste, ki jih še nimate.') }}

<ul>
{% for b in backing_images %}
  <li><a href="{{disk_base_url+b}}">{{b}}</a></li>
{% endfor %}
</ul>
{% endif %}
</section>
</section>

<section>
<h1>{{ _('Rezultat') }}</h1>
<p>
{% 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 %}

<p>
<a href="../task.html">{{ _('Program za preverjanje.') }}</a>

<h1>{{ _('Parametri') }}</h1>
<dl>
{% for p in params if p['value'] %}
  <dt><em>{{ p['name'] }}</em>{% if p['description'] %} … <small>{{ p['description'] }}</small>{% endif %}</dt>
  <dd><code>{{ p['value'] }}</code></dd>
{% endfor %}
</dl>
</section>

{#
<p>
{% if openstack %}
Openstack projekt za to vajo je že ustvarjen ali v izdelavi (funkcionalnost še ne deluje).
{% else %}
<a href='?narediStack=true'>Ustvari</a> Openstack projekt za to vajo (funkcionalnost še ne deluje).
{% endif %}
#}