summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-10-13 19:23:10 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2018-10-13 19:24:23 +0200
commitdd8f99e7b804c9e99fe40b430ee565acad8b3fca (patch)
tree05498b5b4bc838622fdfa6967e03ec3186e033d2
parent481fd30e6cc6fc242e9471ce08f676f4883a3e69 (diff)
Add language links to task page
-rw-r--r--kpov_judge/web/kpov_judge/templates/task_greeting.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/kpov_judge/web/kpov_judge/templates/task_greeting.html b/kpov_judge/web/kpov_judge/templates/task_greeting.html
index 1825726..73294e5 100644
--- a/kpov_judge/web/kpov_judge/templates/task_greeting.html
+++ b/kpov_judge/web/kpov_judge/templates/task_greeting.html
@@ -2,6 +2,10 @@
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<style>
+body > h1 > span {
+ font-size: small;
+ font-weight: normal;
+}
img.setup {
border: 1px solid black;
border-radius: 0.2em;
@@ -30,7 +34,14 @@ section > ul {
}
</style>
-<h1><a href="{{ url_for('class_tasks', class_id=class_id) }}" class="back">↩</a> {{task_id}}</h1>
+<h1>
+<a href="{{ url_for('class_tasks', class_id=class_id) }}" class="back">↩</a> {{task_id}}
+<span style="float: right;">[
+{% for lang in ('en', 'si') %}
+<a href="{{ url_for('task_greeting', class_id=class_id, task_id=task_id, lang=lang) }}">{{lang}}</a>
+{% endfor %}
+]</span>
+</h1>
<section>
<a href="setup.png"><img src="setup.png" class="setup"></a>