Hide the navbar search box on the Search page

This commit is contained in:
vitaut 2015-05-20 18:22:35 -07:00
parent fbc2fcb3e2
commit 1456a496f0

View File

@ -44,6 +44,8 @@
{%endif%} {%endif%}
{% endfor %} {% endfor %}
</ul> </ul>
{% if pagename != 'search' %}
<!-- TODO: use the same form on the Search page -->
<form class="navbar-form navbar-right" role="search" action="{{ pathto('search') }}" method="get"> <form class="navbar-form navbar-right" role="search" action="{{ pathto('search') }}" method="get">
<div class="form-group"> <div class="form-group">
<input type="text" name="q" class="form-control" placeholder="Search"> <input type="text" name="q" class="form-control" placeholder="Search">
@ -51,6 +53,7 @@
<input type="hidden" name="area" value="default" /> <input type="hidden" name="area" value="default" />
</div> </div>
</form> </form>
{%endif%}
</div> <!-- /.navbar-collapse --> </div> <!-- /.navbar-collapse -->
</div> <!-- /.col-md-offset-2 --> </div> <!-- /.col-md-offset-2 -->
</div> <!-- /.row --> </div> <!-- /.row -->