Skip to content

Commit 8e9545e

Browse files
committed
Tweaked the base template to give a http login link in development mode, instead of relying on the debug setting, which requires a correct INTERNAL_IP setting, too.
- Legacy-Id: 8012
1 parent 8aba7e9 commit 8e9545e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
{% if user %}
6161
<div id="ietf-login" class="noprint">
6262
{% if request.get_full_path == "/accounts/logout/" %}
63-
<a href="{% if debug %}http://{% else %}https://{% endif %}{{ request.get_host }}/accounts/login/" class="login" rel="nofollow">Sign in</a>
63+
<a href="{% if server_mode == "development" %}http://{% else %}https://{% endif %}{{ request.get_host }}/accounts/login/" class="login" rel="nofollow">Sign in</a>
6464
{% else %}
6565
{% if user.is_authenticated %}
6666
<a href="/accounts/">{{ user }}</a> | <a href="/accounts/logout/" class="login" rel="nofollow">Sign out</a>

0 commit comments

Comments
 (0)