From b51a84220ce40aa2066342980aa31ff324dc8ed4 Mon Sep 17 00:00:00 2001 From: Mikkel <4072916+Mikk3@users.noreply.github.com> Date: Thu, 26 May 2022 15:18:58 +0200 Subject: [PATCH] update goups.html --- aula/templates/groups.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/aula/templates/groups.html b/aula/templates/groups.html index cb74dd5..2f27bfe 100644 --- a/aula/templates/groups.html +++ b/aula/templates/groups.html @@ -1,6 +1,14 @@ {% extends "layout.html" %} {% block content %} - {% for group in groups %} -

{{ group.name }}

- {% endfor %} + {% if groups|length == 0%} +

Ikke medlem af nogle grupper

+ {% else %} + {% for group in groups %} +
+
+ {{ group.name }} +
+
+ {% endfor %} + {% endif %} {% endblock content %}