]> BookStack Code Mirror - bookstack/blob - resources/views/home.blade.php
Added limit to books shown on homepage and make alphabetical
[bookstack] / resources / views / home.blade.php
1 @extends('base')
2
3 @section('content')
4
5     <div class="container">
6         <div class="row">
7             <div class="col-md-7">
8                 <h2>Books</h2>
9                 @if(count($books) > 0)
10                     @foreach($books as $book)
11                         @include('books/list-item', ['book' => $book])
12                         <hr>
13                     @endforeach
14                     @if(count($books) === 10)
15                             <a href="/books">View all books &raquo;</a>
16                     @endif
17                 @else
18                     <p class="text-muted">No books have been created.</p>
19                     <a href="/books/create" class="text-pos"><i class="zmdi zmdi-edit"></i>Create one now</a>
20                 @endif
21             </div>
22             <div class="col-md-4 col-md-offset-1">
23                 <div class="margin-top large">&nbsp;</div>
24                 <h3>Recent Activity</h3>
25                 @include('partials/activity-list', ['activity' => $activity])
26             </div>
27         </div>
28     </div>
29
30
31 @stop