diff --git a/openslides/participant/templates/participant/group_detail.html b/openslides/participant/templates/participant/group_detail.html index 3a7f748f4..e4896ae17 100644 --- a/openslides/participant/templates/participant/group_detail.html +++ b/openslides/participant/templates/participant/group_detail.html @@ -15,6 +15,8 @@ {% for member in group.user_set.all %}

{{ member }}

+{% empty %} +

{% trans "This group has not any members." %}

{% endfor %} {% endblock %} diff --git a/openslides/participant/templates/participant/user_detail.html b/openslides/participant/templates/participant/user_detail.html index 379248bc1..b7a0e50ff 100644 --- a/openslides/participant/templates/participant/user_detail.html +++ b/openslides/participant/templates/participant/user_detail.html @@ -14,26 +14,38 @@

{% trans "Groups" %}

{% for group in shown_user.groups.all %} - {{ group }}, + {{ group }}, + {% empty %} + {% trans "The participant is not member of any group." %} {% endfor %}

-

{% trans "Gender" %}

-

{{ shown_user.get_gender_display }}

+{% if shown_user.get_gender_display %} +

{% trans "Gender" %}

+

{{ shown_user.get_gender_display }}

+{% endif %} +{% if shown_user.get_type_display %}

{% trans "Type" %}

{{ shown_user.get_type_display }}

+{% endif %} +{% if shown_user.committee %}

{% trans "Committee" %}

{{ shown_user.committee }}

+{% endif %} {% if perms.participant.can_manage_participant %} + {% if shown_user.comment %}

{% trans "Comment" %}

{{ shown_user.comment }}

+ {% endif %}

{% trans "Last Login" %}

{% if shown_user.last_login > shown_user.date_joined %}

{{ shown_user.last_login }}

+ {% else %} +

{% trans "The participant was not logged in yet." %}

{% endif %} {% endif %}