summaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
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 %}