From 1465d1a64e7497fdebe73e2f5f8e12613f5640d2 Mon Sep 17 00:00:00 2001 From: Christian Glatthard Date: Wed, 12 Aug 2015 19:32:00 +0200 Subject: [PATCH] nicer button placement --- .../web/collaborationgroups/manage.html | 60 +++++++++---------- ipynbsrv/web/templates/web/shares/manage.html | 13 ++-- 2 files changed, 36 insertions(+), 37 deletions(-) diff --git a/ipynbsrv/web/templates/web/collaborationgroups/manage.html b/ipynbsrv/web/templates/web/collaborationgroups/manage.html index 207d20b..5057dfc 100644 --- a/ipynbsrv/web/templates/web/collaborationgroups/manage.html +++ b/ipynbsrv/web/templates/web/collaborationgroups/manage.html @@ -10,34 +10,36 @@ {% block content %}
-
+
{% include 'web/snippets/messages.html' with messages=messages only %}

Group

+
{% if request.user.backend_user.id in group.admins or request.user.backend_user.id == group.creator.id %} -
- {% csrf_token %} - - -
- {% endif %} - {% if request.user.backend_user.id not in group.member_ids and group.is_public %} -
- {% csrf_token %} - - -
- {% endif %} - {% if request.user.backend_user.id in group.member_ids and request.user.backend_user.id != group.creator.id and group.creator %} -
- {% csrf_token %} - - -
+
+ {% csrf_token %} + + +
+ {% endif %} + {% if request.user.backend_user.id not in group.member_ids and group.is_public %} +
+ {% csrf_token %} + + +
+ {% endif %} + {% if request.user.backend_user.id in group.member_ids and request.user.backend_user.id != group.creator.id and group.creator %} +
+ {% csrf_token %} + + +
{% endif %} +
@@ -58,13 +60,11 @@

Group

Members

-
- {% if request.user.backend_user.id in group.admins or request.user.backend_user.id == group.creator.id %} -
- -
- {% endif %} -
+ {% if request.user.backend_user.id in group.admins or request.user.backend_user.id == group.creator.id %} +
+ +
+ {% endif %} diff --git a/ipynbsrv/web/templates/web/shares/manage.html b/ipynbsrv/web/templates/web/shares/manage.html index d80a65e..01eb763 100644 --- a/ipynbsrv/web/templates/web/shares/manage.html +++ b/ipynbsrv/web/templates/web/shares/manage.html @@ -18,7 +18,7 @@

Share

{% csrf_token %} - {% endif %} @@ -57,9 +57,9 @@

Share

{% if request.user.backend_user.id == share.owner.id %}

Shared with...

-
-
-
+ +
+ @@ -72,9 +72,8 @@

Shared with...

Add group {% endif %} -
- -
+ +