Layout 2 has now 2 different search routes, the default search route is now /main for a better thumbnail view and index search is only working on the /index site itself may contain minor other css improvements/fixes

This commit is contained in:
noxy
2019-10-19 09:28:17 +00:00
parent 33373992ef
commit 62a9926ff1
3 changed files with 14 additions and 1 deletions

View File

@@ -55,11 +55,19 @@
@else
@endif
@if (\Request::is('index'))
<div class="search-index hidden-xs d-none d-md-block">
<form method="get" action="/index" class="form-inline my-2 my-lg-0">
{!! Form::text('q', isset($q) ? $q : null, ['class' => 'form-control mr-sm-2 search-input text-light', 'placeholder' => 'Search w0bm.com']) !!}
<button class="btn btn-dark" type="submit">Search</button>
</form>
</div>
@else
<div class="search-index hidden-xs d-none d-md-block">
<form method="get" action="/main" class="form-inline my-2 my-lg-0">
{!! Form::text('q', isset($q) ? $q : null, ['class' => 'form-control mr-sm-2 search-input text-light', 'placeholder' => 'Search w0bm.com']) !!}
<button class="btn btn-dark" type="submit">Search</button>
</form>
</div>
@endif
</nav>