diff --git a/chat/templates/chat/chat_content.html b/chat/templates/chat/chat_content.html index e13144d..a5457ea 100644 --- a/chat/templates/chat/chat_content.html +++ b/chat/templates/chat/chat_content.html @@ -1,8 +1,8 @@ {% load counter_tag %} {% if roomdata.creator == user %} -

{{roomdata.chatmember_single.first_name}} {{roomdata.chatmember_single.last_name}}

+

{{roomdata.chatmember_single.first_name}} {{roomdata.chatmember_single.last_name}}

{% else %} -

{{roomdata.creator.first_name}} {{roomdata.creator.last_name}}

+

{{roomdata.creator.first_name}} {{roomdata.creator.last_name}}

{% endif %}
diff --git a/chat/templates/chat/chat_content_groupchat.html b/chat/templates/chat/chat_content_groupchat.html index 3498e22..0b84f6f 100644 --- a/chat/templates/chat/chat_content_groupchat.html +++ b/chat/templates/chat/chat_content_groupchat.html @@ -1,8 +1,10 @@ {% load counter_tag %}

{{roomdata.roomname}} {% if user in roomdata.chatmembers_admin.all or user == roomdata.creator %} + + {% endif %}

diff --git a/chat/templates/chat/chatmanagement.html b/chat/templates/chat/chatmanagement.html index 14671d2..73dd178 100644 --- a/chat/templates/chat/chatmanagement.html +++ b/chat/templates/chat/chatmanagement.html @@ -55,16 +55,16 @@ }
-

Chat  -

- ACHTUNG! Der Chat befindet sich im Beta-Stadium! Bitte vermeiden Sie es daher, persönliche oder intime Informationen zu verschicken, bis alle Funktionen ausreichend erprobt sind. Vielen Dank! +

Chat  +


-
-
Mitarbeiter -
+ +
+ + + +
+
+
+
+ +
+
+
+
+ {% for user in usersofagency %} +
+
+
+
+ +
+
+
+
{{user.first_name}} {{user.last_name}}
+
+
+
+ {% endfor %} +
+
+
+ +
+
+
+ + +
+
+
+
+ {% for chatroom in chatrooms %} + {% if user in chatroom.chatmembers.all or user in chatroom.chatmembers_admin.all or user == chatroom.creator and chatroom.chatroomtype == 1 %} +
+
+
+
{{chatroom.roomname}} +
+ {% for member in chatroom.chatmembers.all %} + {{member.first_name}} {{member.last_name}}{% if forloop.counter < chatroom.chatmembers.all|length %}, {% endif %} + {% endfor %} + +
+
+
+ {% endif %} + {% endfor %} +
+
-
- -
+ + +
+
+
+ + + + +