diff --git a/mo/web/templates/user_contest.html b/mo/web/templates/user_contest.html index 111c6b7a9b33f9c7ba1c23de75a71883da02769c..49b3f0a0ee64381bbc186905f0aa1b5e9b87b2d6 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 28ee14efc23d043bfa2ec4ba37d02ace7b95e40c..504c4a2d55593ecf4acb5f612236471e1a48ca27 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>