From 0f0eed3ff6722a5e30521b06e7f5487aaeba660e Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Sun, 5 Apr 2020 10:05:44 +0200 Subject: [PATCH] =?UTF-8?q?Auto=C5=99i=20se=20vypisuj=C3=AD=20z=20pole?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/section.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/templates/section.html b/templates/section.html index 92b4cfa..b7b57e2 100644 --- a/templates/section.html +++ b/templates/section.html @@ -37,6 +37,17 @@

{{ section.title }}

{% if section.extra.group %}
Cílová skupina – {{ section.extra.group }}
{% endif %} {% if section.extra.time %}
Časová dotace – {{ section.extra.time }}
{% endif %} - {% if section.extra.author %}
Autor – {{ section.extra.author }}
{% endif %} + {% if section.extra.authors %} + {% if section.extra.authors | length > 1 %} +
Autoři – + {% for author in section.extra.authors %} + {{ author }} + {% if not author == section.extra.authors | last %}, {% endif %} + {% endfor %} +
+ {% else %} +
Autor – {{ section.extra.authors[0] }}
+ {% endif %} + {% endif %} {{ section.content | safe }} {% endblock content %}