From 089018d90e9c7bb26db5686c8ca18cfdc049e893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=C3=A1=C5=A1=20Havelka?= Date: Mon, 6 Feb 2023 20:52:53 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20skr=C3=BDt=20teamovou=20=C4=8D=C3=A1st?= =?UTF-8?q?=20p=C5=99i=20jednom=20=C5=99e=C5=A1iteli=20v=20=C5=99e=C5=A1en?= =?UTF-8?q?=C3=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- odevzdavatko/templates/odevzdavatko/detail.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/odevzdavatko/templates/odevzdavatko/detail.html b/odevzdavatko/templates/odevzdavatko/detail.html index 09ad4d49..4692416f 100644 --- a/odevzdavatko/templates/odevzdavatko/detail.html +++ b/odevzdavatko/templates/odevzdavatko/detail.html @@ -3,9 +3,11 @@ {% load deadliny %} {# Přišlo mi to hezčí, než psát všude if. #} -{% if object.resitele.count == 1 %} - {% block custom_css %} {% endblock %} -{% endif %} +{% block custom_css %} + {% if object.resitele | length == 1 %} + + {% endif %} +{% endblock %} {% block content %} @@ -112,6 +114,7 @@ {% endif %} +

Vysvětlivky:

{# 📖 #}🧍
Body, které dostává jeden řešitel za toto řešení.