Skip to content

Commit 23acb0d

Browse files
authored
Merge pull request #5534 from saadmk11/login-update
Remove Header Login button from login page
2 parents 133be79 + f244b2a commit 23acb0d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

readthedocs/templates/core/header.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ <h1>
3535
</div>
3636
</div>
3737
{% else %}
38-
<div class="rtfd-header-nav">
39-
<ul><li><a href="{% url 'account_login' %}">{% trans "Log In" %}</a></li></ul>
40-
</div>
38+
{% url 'account_login' as login %}
39+
{% if not request.path == login %}
40+
<div class="rtfd-header-nav">
41+
<ul><li><a href="{% url 'account_login' %}">{% trans "Log In" %}</a></li></ul>
42+
</div>
43+
{% endif %}
4144
{% endif %}
4245
<!-- END header nav -->
4346

0 commit comments

Comments
 (0)