summaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorromangraef <roman.graef@gmail.com>2018-06-02 09:58:37 +0200
committerromangraef <roman.graef@gmail.com>2018-06-02 09:58:37 +0200
commit57a8d6c5abe24324fe21da405ecdb8632cdb8b33 (patch)
tree9ab1e295efd8cbc092a7e16e60096e750fcdffbc /templates/base.html
parent7bed1685b66f126b7130e43304ad8f53f69a3aff (diff)
downloadmy-website-57a8d6c5abe24324fe21da405ecdb8632cdb8b33.tar.gz
my-website-57a8d6c5abe24324fe21da405ecdb8632cdb8b33.tar.bz2
my-website-57a8d6c5abe24324fe21da405ecdb8632cdb8b33.zip
Added return_url to admin login
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/base.html b/templates/base.html
index 9f45c87..c48d1c3 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -25,7 +25,11 @@
<a href="{{ url_for('new_project_form') }}">New Project</a>
{% block admin_footer %}{% endblock %}
{% else %}
- <a href="{{ url_for('login') }}">Admin login</a>
+ {% if no_login %}
+ <a href="{{ return_url }}">Go back</a>
+ {% else %}
+ <a href="{{ url_for('login') }}?return_url={{ request.path }}">Admin login</a>
+ {% endif %}
{% endif %}
{% block footer %}
{% endblock %}