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.html31
1 files changed, 21 insertions, 10 deletions
diff --git a/kpov_judge/web/kpov_judge/templates/task_greeting.html b/kpov_judge/web/kpov_judge/templates/task_greeting.html
index 086d6b1..1825726 100644
--- a/kpov_judge/web/kpov_judge/templates/task_greeting.html
+++ b/kpov_judge/web/kpov_judge/templates/task_greeting.html
@@ -53,7 +53,7 @@ section > ul {
{% if 'disk_urls' in c %}
<ul>
{% for u in c['disk_urls'] %}
- <li><a href={{disk_base_url+u['file']}}>{{u['name']}}</a>
+ <li><a href="{{disk_base_url+u['file']}}">{{u['name']}}</a>
{% endfor %}
</ul>
{% else %}
@@ -70,7 +70,7 @@ section > ul {
<ul>
{% for b in backing_images %}
- <li><a href={{disk_base_url+b}}>{{b}}</a></li>
+ <li><a href="{{disk_base_url+b}}">{{b}}</a></li>
{% endfor %}
</ul>
{% endif %}
@@ -78,16 +78,27 @@ section > ul {
</section>
<section>
-<h1>{{ _('Rezultati') }}</h1>
+<h1>{{ _('Rezultat') }}</h1>
<p>
-{{ _('Ogledate si lahko:') }}
+{% 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 %}
-<ul>
-<li><a href='results.html'>{{ _('rezultate') }}</a> (<a href='../results.json'>json</a>)</li>
-<li><a href='params.html'>{{ _('parametre') }}</a> (<a href='../params.json'>json</a>, <a href='../params_meta.json'>{{ _('opisi parametrov') }}</a>)</li>
-<li><a href='../task.html'>{{ _('preverjalni program') }}</a> (<a href='../task.py'>source</a>)</li>
-</ul>
-</p>
+<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>