From fa096447536cc3f212eb82d4e6feb41a8ae20fcb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ji=C5=99=C3=AD=20Setni=C4=8Dka?= <setnicka@seznam.cz>
Date: Sat, 23 Jan 2021 17:20:29 +0100
Subject: [PATCH] =?UTF-8?q?Spr=C3=A1vn=C3=A9=20title=20a=20jednoduch=C3=A1?=
 =?UTF-8?q?=20navigace=20v=20=C3=BA=C4=8Dastnick=C3=A9=20sekci?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 mo/web/templates/user_contest.html      |  5 +++++
 mo/web/templates/user_contest_task.html | 11 ++++++++---
 2 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/mo/web/templates/user_contest.html b/mo/web/templates/user_contest.html
index 111c6b7a..49b3f0a0 100644
--- a/mo/web/templates/user_contest.html
+++ b/mo/web/templates/user_contest.html
@@ -4,6 +4,11 @@
 {% set state = round.state %}
 
 {% block title %}{{ round.name }} {{ round.year }}. ročníku kategorie {{ round.category }}: {{ contest.place.name }}{% endblock %}
+{% block breadcrumbs %}
+<li><a href='{{ url_for('user_index') }}'>Soutěže</a>
+<li><a href='{{ url_for('user_contest', id=contest.contest_id) }}'>{{ round.name }} {{ round.year }}. ročníku kategorie {{ round.category }}: {{ contest.place.name }}</a>
+<li>Seznam úloh
+{% endblock %}
 {% block body %}
 
 {% if state == RoundState.preparing %}
diff --git a/mo/web/templates/user_contest_task.html b/mo/web/templates/user_contest_task.html
index 28ee14ef..504c4a2d 100644
--- a/mo/web/templates/user_contest_task.html
+++ b/mo/web/templates/user_contest_task.html
@@ -1,10 +1,15 @@
 {% extends "base.html" %}
 {% import "bootstrap/wtf.html" as wtf %}
-{% block body %}
 {% set round = contest.round %}
 
-<h2>{{ round.name }} {{ round.year }}. ročníku kategorie {{ round.category }}: {{ contest.place.name }}</h2>
-<h2>Úloha {{ task.code }}: {{ task.name }}</h2>
+{% block title %}Úloha {{ task.code }}: {{ task.name }}{% endblock %}
+{% block breadcrumbs %}
+<li><a href='{{ url_for('user_index') }}'>Soutěže</a>
+<li><a href='{{ url_for('user_contest', id=contest.contest_id) }}'>{{ round.name }} {{ round.year }}. ročníku kategorie {{ round.category }}: {{ contest.place.name }}</a>
+<li>Úloha {{ task.code }}: {{ task.name }}
+{% endblock %}
+
+{% block body %}
 
 <p><a href='{{ url_for('user_contest', id=contest.contest_id) }}'>↵ Zpět na seznam úloh</a>
 
-- 
GitLab