X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/1b29d44689bbcf40fc79ef9b4257fc387d4b64be..refs/pull/205/head:/resources/views/home.blade.php diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index de6414044..2fb4ac855 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -2,29 +2,70 @@ @section('content') +
+
+
+
+ +
+
+
-
+
+
+
+
+
+ +
-
-

Books

- @if(count($books) > 0) - @foreach($books as $book) -
-

{{$book->name}}

-

{{$book->description}}

-
-
- @endforeach + +
+
+ @if(count($draftPages) > 0) +

My Recent Drafts

+ @include('partials/entity-list', ['entities' => $draftPages, 'style' => 'compact']) + @endif +
+ @if($signedIn) +

My Recently Viewed

@else -

No books have been created.

- Create one now +

Recent Books

@endif + @include('partials/entity-list', [ + 'entities' => $recents, + 'style' => 'compact', + 'emptyText' => $signedIn ? 'You have not viewed any pages' : 'No books have been created' + ])
-
-
 
-

Recent Activity

+ +
+

Recently Created Pages

+
+ @include('partials/entity-list', [ + 'entities' => $recentlyCreatedPages, + 'style' => 'compact', + 'emptyText' => 'No pages have been recently created' + ]) +
+ +

Recently Updated Pages

+
+ @include('partials/entity-list', [ + 'entities' => $recentlyUpdatedPages, + 'style' => 'compact', + 'emptyText' => 'No pages have been recently updated' + ]) +
+
+ +
+

Recent Activity

@include('partials/activity-list', ['activity' => $activity])
+