Skip to content
This repository was archived by the owner on Dec 11, 2018. It is now read-only.

Commit f5eeb58

Browse files
committed
Hide navbar login on login page
1 parent 71a5fdc commit f5eeb58

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

data/templates/base.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
{% if user|default(false) %}
3434
{% include 'nav_user.html' %}
3535
{% else %}
36+
{% block login_form %}
3637
<form class="navbar-form navbar-right" action="{{ urlFor( 'login_post' ) }}" method="post" role="form">
3738
<input type="hidden" name="{{ csrf_param }}" value="{{ csrf_token }}" />
3839
<div class="form-group">
@@ -45,6 +46,7 @@
4546
</div>
4647
<input type="submit" class="btn btn-default" value="{{ 'login'|message }}" />
4748
</form>
49+
{% endblock login_form %}
4850
{% endif %}
4951
{% endblock navbar %}
5052
</ul>

data/templates/login.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
{% block title %}{{ 'login'|message }} - {{ parent() }}{% endblock title %}
44

5+
{% block login_form %}{% endblock %}
6+
57
{% block content %}
68
{% spaceless %}
79
<div class="row">

0 commit comments

Comments
 (0)