Skip to content
Snippets Groups Projects
Verified Commit a7665dd6 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Show searchbar only if user is authenticated

parent cf676b58
No related branches found
No related tags found
No related merge requests found
Pipeline #1393 failed
......@@ -71,14 +71,16 @@
</object>
</a>
</li>
<li class="search">
<form method="get" action="{% url "haystack_search" %}" id="search-form" class="autocomplete">
<div class="search-wrapper">
<input id="search" name="q" placeholder="{% trans "Search" %}">
<i class="material-icons">search</i>
</div>
</form>
</li>
{% if user.is_authenticated %}
<li class="search">
<form method="get" action="{% url "haystack_search" %}" id="search-form" class="autocomplete">
<div class="search-wrapper">
<input id="search" name="q" placeholder="{% trans "Search" %}">
<i class="material-icons">search</i>
</div>
</form>
</li>
{% endif %}
<li class="no-padding">
{% include "core/sidenav.html" %}
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment