Skip to content

Commit 0787ef4

Browse files
committed
Clean up the display of 'Sign In' and version number when rendering the base template without context (which is the case for the 500 server error template).
- Legacy-Id: 3513
1 parent c89f920 commit 0787ef4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/templates/base.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,13 @@
6060
<img src="/images/ietflogo-blue-small.png" width="60" height="34" style="vertical-align:middle;padding-left:8px;" alt=""/><span style="padding-left:15px;font-weight:bold;letter-spacing:0.1em;">datatracker.ietf.org {% if server_mode %}{% ifnotequal server_mode "production" %} - {{ server_mode|upper}} MODE{% endifnotequal %}{% endif %}</span>
6161
</div>
6262

63+
{% if user %}
6364
<div id="ietf-login" class="noprint">{% if user.is_authenticated %}
6465
{{ user }}
6566
{% else %}
6667
<a href="https://datatracker.ietf.org/accounts/login/?next={{request.get_full_path|urlencode}}" rel="nofollow">Sign In</a>
6768
{% endif %}</div>
69+
{% endif %}
6870

6971
<table style="margin-left:8px;margin-top:8px;" width="98%;">
7072
<tr valign="top">
@@ -73,8 +75,10 @@
7375
{% include "base_leftmenu.html" %}
7476
</div>
7577
<div style="width: 100%; text-align: center; padding-top:4px;font-size:69%;">
78+
{% if version_num %}
7679
Version {{ version_num }}, {{revision_date}}
7780
<br/>
81+
{% endif %}
7882
<a href="http://tools.ietf.org/tools/ietfdb/newticket">Report a bug</a>
7983
</div>
8084
</td>

0 commit comments

Comments
 (0)