Added limit to books shown on homepage and make alphabetical

This commit is contained in:
Dan Brown
2015-11-09 20:39:06 +00:00
parent e5b9be2e76
commit 76eb8fc5d7
3 changed files with 6 additions and 3 deletions

View 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>