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)' %}: