BookStack/resources/views/home.blade.php

31 lines
1 KiB
PHP
Raw Normal View History

2015-08-12 19:48:26 +02:00
@extends('base')
@section('content')
2015-08-13 08:44:10 +02:00
2015-08-30 18:53:30 +02:00
<div class="container">
<div class="row">
<div class="col-md-7">
<h2>Books</h2>
2015-08-31 18:59:45 +02:00
@if(count($books) > 0)
@foreach($books as $book)
@include('books/list-item', ['book' => $book])
2015-08-31 18:59:45 +02:00
<hr>
@endforeach
@if(count($books) === 10)
<a href="/books">View all books &raquo;</a>
@endif
2015-08-31 18:59:45 +02:00
@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>
@endif
</div>
2015-08-30 18:53:30 +02:00
<div class="col-md-4 col-md-offset-1">
<div class="margin-top large">&nbsp;</div>
<h3>Recent Activity</h3>
@include('partials/activity-list', ['activity' => $activity])
</div>
</div>
</div>
2015-08-13 08:44:10 +02:00
2015-08-30 18:53:30 +02:00
2015-08-12 19:48:26 +02:00
@stop