fmartingr
/
shelfzilla
Archived
1
0
Fork 0

Hidden search form if user is not logged in.

This commit is contained in:
Felipe Martin 2014-05-27 22:49:20 +02:00
parent d1c4c602e3
commit 0eadae992c
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@
</li>
{% endif %}
</ul>
{% if user.is_authenticated %}
<form class="navbar-form navbar-right" role="search" method="post" action="{% url "search" %}">
{% csrf_token %}
<div class="form-search search-only">
@ -69,6 +70,7 @@
<input type="text" value="{{ search_query }}" name="q" class="form-control search-query" placeholder="{% trans 'Search' %}">
</div>
</form>
{% endif %}
</div>
</div>
</nav>