mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-02 23:56:56 +08:00
Started implementation of new search system
This commit is contained in:
@ -20,36 +20,30 @@
|
||||
<h1>{{ trans('entities.search_results') }}</h1>
|
||||
|
||||
<p>
|
||||
@if(count($pages) > 0)
|
||||
<a href="{{ baseUrl("/search/pages?term={$searchTerm}") }}" class="text-page"><i class="zmdi zmdi-file-text"></i>{{ trans('entities.search_view_pages') }}</a>
|
||||
@endif
|
||||
{{--TODO - Remove these pages--}}
|
||||
Remove these links (Commented out)
|
||||
{{--@if(count($pages) > 0)--}}
|
||||
{{--<a href="{{ baseUrl("/search/pages?term={$searchTerm}") }}" class="text-page"><i class="zmdi zmdi-file-text"></i>{{ trans('entities.search_view_pages') }}</a>--}}
|
||||
{{--@endif--}}
|
||||
|
||||
@if(count($chapters) > 0)
|
||||
|
||||
<a href="{{ baseUrl("/search/chapters?term={$searchTerm}") }}" class="text-chapter"><i class="zmdi zmdi-collection-bookmark"></i>{{ trans('entities.search_view_chapters') }}</a>
|
||||
@endif
|
||||
{{--@if(count($chapters) > 0)--}}
|
||||
{{-- --}}
|
||||
{{--<a href="{{ baseUrl("/search/chapters?term={$searchTerm}") }}" class="text-chapter"><i class="zmdi zmdi-collection-bookmark"></i>{{ trans('entities.search_view_chapters') }}</a>--}}
|
||||
{{--@endif--}}
|
||||
|
||||
@if(count($books) > 0)
|
||||
|
||||
<a href="{{ baseUrl("/search/books?term={$searchTerm}") }}" class="text-book"><i class="zmdi zmdi-book"></i>{{ trans('entities.search_view_books') }}</a>
|
||||
@endif
|
||||
{{--@if(count($books) > 0)--}}
|
||||
{{-- --}}
|
||||
{{--<a href="{{ baseUrl("/search/books?term={$searchTerm}") }}" class="text-book"><i class="zmdi zmdi-book"></i>{{ trans('entities.search_view_books') }}</a>--}}
|
||||
{{--@endif--}}
|
||||
</p>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h3><a href="{{ baseUrl("/search/pages?term={$searchTerm}") }}" class="no-color">{{ trans('entities.pages') }}</a></h3>
|
||||
@include('partials/entity-list', ['entities' => $pages, 'style' => 'detailed'])
|
||||
@include('partials/entity-list', ['entities' => $entities, 'style' => 'detailed'])
|
||||
</div>
|
||||
<div class="col-md-5 col-md-offset-1">
|
||||
@if(count($books) > 0)
|
||||
<h3><a href="{{ baseUrl("/search/books?term={$searchTerm}") }}" class="no-color">{{ trans('entities.books') }}</a></h3>
|
||||
@include('partials/entity-list', ['entities' => $books])
|
||||
@endif
|
||||
|
||||
@if(count($chapters) > 0)
|
||||
<h3><a href="{{ baseUrl("/search/chapters?term={$searchTerm}") }}" class="no-color">{{ trans('entities.chapters') }}</a></h3>
|
||||
@include('partials/entity-list', ['entities' => $chapters])
|
||||
@endif
|
||||
Sidebar filter controls
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Reference in New Issue
Block a user