]> BookStack Code Mirror - bookstack/blob - resources/views/search/all.blade.php
Updated all application urls to allow path prefix.
[bookstack] / resources / views / search / all.blade.php
1 @extends('base')
2
3 @section('content')
4
5     <div class="container anim fadeIn" ng-non-bindable>
6
7         <h1>Search Results&nbsp;&nbsp;&nbsp; <span class="text-muted">{{ $searchTerm }}</span></h1>
8
9         <p>
10
11             @if(count($pages) > 0)
12                 <a href="{{ baseUrl("/search/pages?term={$searchTerm}") }}" class="text-page"><i class="zmdi zmdi-file-text"></i>View all matched pages</a>
13             @endif
14
15
16             @if(count($chapters) > 0)
17                 &nbsp; &nbsp;&nbsp;
18                 <a href="{{ baseUrl("/search/chapters?term={$searchTerm}") }}" class="text-chapter"><i class="zmdi zmdi-collection-bookmark"></i>View all matched chapters</a>
19             @endif
20
21             @if(count($books) > 0)
22                 &nbsp; &nbsp;&nbsp;
23                 <a href="{{ baseUrl("/search/books?term={$searchTerm}") }}" class="text-book"><i class="zmdi zmdi-book"></i>View all matched books</a>
24             @endif
25         </p>
26         <div class="row">
27
28             <div class="col-md-6">
29                 <h3><a href="{{ baseUrl("/search/pages?term={$searchTerm}") }}" class="no-color">Matching Pages</a></h3>
30                 @include('partials/entity-list', ['entities' => $pages, 'style' => 'detailed'])
31             </div>
32
33             <div class="col-md-5 col-md-offset-1">
34
35                 @if(count($books) > 0)
36                     <h3><a href="{{ baseUrl("/search/books?term={$searchTerm}") }}" class="no-color">Matching Books</a></h3>
37                     @include('partials/entity-list', ['entities' => $books])
38                 @endif
39
40                 @if(count($chapters) > 0)
41                     <h3><a href="{{ baseUrl("/search/chapters?term={$searchTerm}") }}" class="no-color">Matching Chapters</a></h3>
42                     @include('partials/entity-list', ['entities' => $chapters])
43                 @endif
44
45             </div>
46
47
48         </div>
49
50
51     </div>
52
53
54 @stop