]> BookStack Code Mirror - bookstack/blobdiff - resources/views/home.blade.php
Added limit to books shown on homepage and make alphabetical
[bookstack] / resources / views / home.blade.php
index 32bfbd028e14d66852729c8bbd64bceb4ead1e1b..2a97c4839c13fd0d1d30ffe1e615a361c4c10c96 100644 (file)
@@ -11,6 +11,9 @@
                         @include('books/list-item', ['book' => $book])
                         <hr>
                     @endforeach
+                    @if(count($books) === 10)
+                            <a href="/books">View all books &raquo;</a>
+                    @endif
                 @else
                     <p class="text-muted">No books have been created.</p>
                     <a href="/books/create" class="text-pos"><i class="zmdi zmdi-edit"></i>Create one now</a>