]> BookStack Code Mirror - bookstack/blob - resources/views/search/all.blade.php
Closes #69. Implemented and tested memcached.
[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             <a href="/search/pages?term={{$searchTerm}}" class="text-page"><i class="zmdi zmdi-file-text"></i>View all matched pages</a>
11
12             @if(count($chapters) > 0)
13                 &nbsp; &nbsp;&nbsp;
14                 <a href="/search/chapters?term={{$searchTerm}}" class="text-chapter"><i class="zmdi zmdi-collection-bookmark"></i>View all matched chapters</a>
15             @endif
16
17             @if(count($books) > 0)
18                 &nbsp; &nbsp;&nbsp;
19                 <a href="/search/books?term={{$searchTerm}}" class="text-book"><i class="zmdi zmdi-book"></i>View all matched books</a>
20             @endif
21         </p>
22         <div class="row">
23
24             <div class="col-md-6">
25                 <h3><a href="/search/pages?term={{$searchTerm}}" class="no-color">Matching Pages</a></h3>
26                 @include('partials/entity-list', ['entities' => $pages, 'style' => 'detailed'])
27             </div>
28
29             <div class="col-md-5 col-md-offset-1">
30
31                 @if(count($books) > 0)
32                     <h3><a href="/search/books?term={{$searchTerm}}" class="no-color">Matching Books</a></h3>
33                     @include('partials/entity-list', ['entities' => $books])
34                 @endif
35
36                 @if(count($chapters) > 0)
37                     <h3><a href="/search/chapters?term={{$searchTerm}}" class="no-color">Matching Chapters</a></h3>
38                     @include('partials/entity-list', ['entities' => $chapters])
39                 @endif
40
41             </div>
42
43
44         </div>
45
46
47     </div>
48
49
50 @stop