Skip to content

Commit 369643c

Browse files
committed
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. Commit ready for merge. - Legacy-Id: 19467
1 parent ee74583 commit 369643c

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

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">
@@ -177,5 +183,4 @@
177183
<script src="{% static 'jquery.tablesorter/js/jquery.tablesorter.combined.min.js' %}"></script>
178184
{% endif %}
179185
</body>
180-
</html>
181-
186+
</html>

0 commit comments

Comments
 (0)