Use join for group list in UserSlide.html
This commit is contained in:
parent
d69e5a246b
commit
5939b98772
@ -10,11 +10,11 @@
|
|||||||
<div id='sidebar'>
|
<div id='sidebar'>
|
||||||
<div class='box'>
|
<div class='box'>
|
||||||
<p><strong>{% trans "Groups" %}</strong><br />
|
<p><strong>{% trans "Groups" %}</strong><br />
|
||||||
{% for group in shown_user.groups.all %}
|
{% if shown_user.groups.all %}
|
||||||
{{ group }},
|
{{ shown_user.groups.all|join:", " }}
|
||||||
{% empty %}
|
{% else %}
|
||||||
{% trans "The participant is not member of any group." %}
|
{% trans "The participant is not member of any group." %}
|
||||||
{% endfor %}
|
{% endif %}
|
||||||
</p>
|
</p>
|
||||||
{% if shown_user.get_gender_display %}
|
{% if shown_user.get_gender_display %}
|
||||||
<p><strong>{% trans "Gender" %}</strong><br />{{ shown_user.get_gender_display }}</p>
|
<p><strong>{% trans "Gender" %}</strong><br />{{ shown_user.get_gender_display }}</p>
|
||||||
|
Loading…
Reference in New Issue
Block a user