mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-22 06:58:07 +00:00
Hide top bar login form on login page
This commit is contained in:
parent
7242adadaa
commit
eec3e6c4b4
1 changed files with 7 additions and 1 deletions
|
@ -117,11 +117,12 @@
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% elif request.path != '/login' and request.path != '/login/' %}
|
||||||
<div class="navbar-item">
|
<div class="navbar-item">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<form name="login" method="post" action="/user-login">
|
<form name="login" method="post" action="/user-login">
|
||||||
|
{% csrf_token %}
|
||||||
<div class="field is-grouped">
|
<div class="field is-grouped">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<label class="is-sr-only" for="id_username">Username:</label>
|
<label class="is-sr-only" for="id_username">Username:</label>
|
||||||
|
@ -143,6 +144,11 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="navbar-item">
|
||||||
|
<a href="/login" class="button is-link">
|
||||||
|
Join
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue