diff --git a/ipynbsrv/settings.py b/ipynbsrv/settings.py
index 7fa6c35..7b144e8 100644
--- a/ipynbsrv/settings.py
+++ b/ipynbsrv/settings.py
@@ -122,6 +122,7 @@
LOGIN_URL = '/accounts/login'
LOGIN_REDIRECT_URL = '/accounts/flag'
PUBLIC_URL = '/public/'
+USER_GUIDE_URL = '/docs/user-guide/'
VARS_MODULE_PATH = 'ipynbsrv.core.conf'
diff --git a/ipynbsrv/web/templates/web/collaborationgroups/index.html b/ipynbsrv/web/templates/web/collaborationgroups/index.html
index 9de0ebc..0abb3d3 100644
--- a/ipynbsrv/web/templates/web/collaborationgroups/index.html
+++ b/ipynbsrv/web/templates/web/collaborationgroups/index.html
@@ -13,12 +13,12 @@
{% include 'web/snippets/messages.html' with messages=messages only %}
-
My Groups
+
Groups
- {% if groups %}
+ {% if groups and not groups|length_is:"1" %}
@@ -29,56 +29,55 @@ My Groups
- {% for group in groups %}
- {% if not group.is_single_user_group %}
-
- {{group.name}}
- {{ group.member_count }}
- {% if request.user.backend_user.id in group.admins %}Admin {% endif %}
- {% if request.user.backend_user.id == group.creator.id %}Creator
- {% else %} {% if request.user.backend_user.id in group.member_ids %}Member {% endif %}{% endif %}
-
-
- {% if request.user.backend_user.id != group.creator.id and group.creator %}
- {% if request.user.backend_user.id in group.member_ids %}
-
- {% else %}
-
- {% endif %}
- {% endif %}
+ {% for group in groups %}
+ {% if not group.is_single_user_group %}
+
+ {{group.name}}
+ {{ group.member_count }}
+ {% if request.user.backend_user.id in group.admins %}Admin {% endif %}
+ {% if request.user.backend_user.id == group.creator.id %}Creator
+ {% else %} {% if request.user.backend_user.id in group.member_ids %}Member {% endif %}{% endif %}
+
+
+ {% if request.user.backend_user.id != group.creator.id and group.creator %}
+ {% if request.user.backend_user.id in group.member_ids %}
+
+ {% else %}
+
+ {% endif %}
+ {% endif %}
- {% if request.user.backend_user.id == group.creator.id or request.user.id in group.admins %}
-
- {% endif %}
-
-
- {% endif %}
- {% endfor %}
-
+ {% if request.user.backend_user.id == group.creator.id or request.user.id in group.admins %}
+
+ {% endif %}
+
+
+ {% endif %}
+ {% endfor %}
+
-
{% else %}
-
You have no groups yet.
+
You have no groups.
{% endif %}
{% include 'web/collaborationgroups/modal_addusers.html' with csrf_token=csrf_token only %}
@@ -111,7 +110,7 @@
My Groups
table.find('.label').click(function (e) {
var label = $(e.target);
search_input.val(label.text());
- search_input.submit();
+ search_input.submit();
});
$('[data-toggle="modal"]').click(function (e) {
diff --git a/ipynbsrv/web/templates/web/collaborationgroups/manage.html b/ipynbsrv/web/templates/web/collaborationgroups/manage.html
index 4d92d31..3f29733 100644
--- a/ipynbsrv/web/templates/web/collaborationgroups/manage.html
+++ b/ipynbsrv/web/templates/web/collaborationgroups/manage.html
@@ -42,6 +42,12 @@
Group
{% endif %}
+
+
+ Property
+ Value
+
+
Name: {{ group.name }}
@@ -54,13 +60,13 @@ Group
Members
-
- {% endif %}
-
+
+ {% if request.user.backend_user.id in group.admins or request.user.backend_user.id == group.creator.id %}
+
+ {% endif %}
+
@@ -87,7 +93,7 @@ Members
{% endif %}
{% if request.user.backend_user.id in group.admins or request.user.backend_user.id == group.creator.id %}
- {% if member.id != group.creator.id %}
+ {% if member.id != group.creator.id %}
- {% for n in notifications %}
+ {% for n in notifications %}
{{ n.date | date:"d.m.Y, H:i" }}
{{ n.notification.sender.username }}
@@ -48,11 +48,11 @@ Notifications
- {% endfor %}
+ {% endfor %}
{% else %}
-
You have no notifications yet.
+
You have no notifications.
{% endif %}
{% include 'web/notifications/modal_create.html' with groups=groups notification_types=notification_types containers=containers container_images=container_images shares=shares csrf_token=csrf_token only %}
diff --git a/ipynbsrv/web/templates/web/notifications/modal_create.html b/ipynbsrv/web/templates/web/notifications/modal_create.html
index 9d353bb..fe8c67d 100644
--- a/ipynbsrv/web/templates/web/notifications/modal_create.html
+++ b/ipynbsrv/web/templates/web/notifications/modal_create.html
@@ -11,18 +11,18 @@
New notification
{% csrf_token %}
- Receiver Groups
+ Receiving Group
{% for group in groups %}
-
- {{ group.name }}
-
+ {% if not group.is_single_user_group %}
+ {{ group.name }}
+ {% endif %}
{% endfor %}