Commit eef55d1aaab7e46e6ea09da1517e0a38ed2cab5a
1 parent
e5b21b48
Exists in
master
and in
2 other branches
Fix'd groups bug
Showing
1 changed file
with
10 additions
and
1 deletions
Show diff stats
students_group/templates/groups/index.html
... | ... | @@ -66,8 +66,17 @@ |
66 | 66 | {% autoescape off %} |
67 | 67 | {{ group.description }} |
68 | 68 | {% endautoescape %} |
69 | + {% if group.participants.count >= 0 %} | |
70 | + {% if group.participants.count == 0 %} | |
71 | + <h4>{% trans 'No participants' %} </h4> | |
72 | + {% elif group.participants.count == 1%} | |
73 | + <h4>{% trans 'Participant' %}: </h4> | |
74 | + {% else %} | |
75 | + <h4>{% trans 'Participants' %}: </h4> | |
76 | + {% endif %} | |
77 | + {% endif %} | |
78 | + | |
69 | 79 | |
70 | - <h4>{% trans 'Participant(s)' %}: </h4> | |
71 | 80 | |
72 | 81 | <ul class="list-inline"> |
73 | 82 | {% for user in group.participants.all %} | ... | ... |