From eef55d1aaab7e46e6ea09da1517e0a38ed2cab5a Mon Sep 17 00:00:00 2001 From: Gustavo Date: Thu, 30 Mar 2017 00:12:46 -0300 Subject: [PATCH] Fix'd groups bug --- students_group/templates/groups/index.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/students_group/templates/groups/index.html b/students_group/templates/groups/index.html index c8ac419..3719ec6 100644 --- a/students_group/templates/groups/index.html +++ b/students_group/templates/groups/index.html @@ -66,8 +66,17 @@ {% autoescape off %} {{ group.description }} {% endautoescape %} + {% if group.participants.count >= 0 %} + {% if group.participants.count == 0 %} +

{% trans 'No participants' %}

+ {% elif group.participants.count == 1%} +

{% trans 'Participant' %}:

+ {% else %} +

{% trans 'Participants' %}:

+ {% endif %} + {% endif %} + -

{% trans 'Participant(s)' %}: