Skip to content

Commit 790ef0a

Browse files
committed
Merged in [19467] from lars@eggert.org:
Add a 'sign in' button to the menu bar when the user is not signed in. This will hopefully make it more noticeable when one got logged out. - Legacy-Id: 19509 Note: SVN reference [19467] has been migrated to Git commit 369643c
2 parents 66e432e + 369643c commit 790ef0a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ietf/templates/base.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@
7474
<ul class="hidden-nojs nav navbar-nav">
7575
{% include "base/menu.html" with flavor="top" %}
7676
</ul>
77+
{% if not user.is_authenticated %}
78+
<p class="navbar-text"></p>
79+
<button type="button" class="btn {% if server_mode and server_mode == "production" %}btn-warning{% else %}btn-default{% endif %} btn-sm navbar-btn">
80+
<a style="color:inherit" rel="nofollow" href="/accounts/login/?next={{request.get_full_path|urlencode}}">Sign in</a>
81+
</button>
82+
{% endif %}
7783

7884
<form class="navbar-form navbar-right hidden-xs" action="/doc/search/">
7985
<div class="form-group">
@@ -176,5 +182,4 @@
176182
<script src="{% static 'jquery.tablesorter/js/jquery.tablesorter.combined.min.js' %}"></script>
177183
{% endif %}
178184
</body>
179-
</html>
180-
185+
</html>

0 commit comments

Comments
 (0)