From 03a6c977650d65f3f4fde3bc047af023ea5a22de Mon Sep 17 00:00:00 2001 From: Martin Mares <mj@ucw.cz> Date: Fri, 13 Oct 2023 21:56:03 +0200 Subject: [PATCH] =?UTF-8?q?N=C3=A1vod:=20Odkaz=20na=20videa=20kategorie=20?= =?UTF-8?q?A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mo/web/templates/doc_index.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/mo/web/templates/doc_index.html b/mo/web/templates/doc_index.html index 8f8b9b4a..d7be0a26 100644 --- a/mo/web/templates/doc_index.html +++ b/mo/web/templates/doc_index.html @@ -52,6 +52,15 @@ ), ]) %} +{% set videos = filter_doc([ + Doc( + min_role=RoleType.garant_skola, + cat='A', + url='https://youtube.com/playlist?list=PLoVd8MCZVtyMEjIeYms1P9qaqY0uLzDqZ&feature=shared', + link_text='Úlohy kategorie A: domácí kolo 73. ročníku', + ), +]) %} + <h3>Pro organizátory</h3> <ul> @@ -63,6 +72,16 @@ {% endfor %} </ul> +{% if videos %} +<h3>Videa</h3> + +<ul> +{% for d in videos %} +<li><a href='{{ d.url }}'>{{ d.link_text }}</a>{{ d.suffix|none_value("") }} +{% endfor %} +</ul> +{% endif %} + <h3>Exporty</h3> <ul> -- GitLab