From 3b4e19ad3b1e7fb47ff4c1a1f06648aa4464ce7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Wed, 31 Oct 2012 14:47:42 +0100 Subject: [PATCH] Enhence template of UserView and GroupView --- .../templates/participant/group_detail.html | 2 ++ .../templates/participant/user_detail.html | 18 +++++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) 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 %}