@else
<h3>Recent Books</h3>
@endif
- @include('partials/entity-list', ['entities' => $recents, 'style' => 'compact'])
+ @include('partials/entity-list', [
+ 'entities' => $recents,
+ 'style' => 'compact',
+ 'emptyText' => $signedIn ? 'You have not viewed any pages' : 'No books have been created'
+ ])
</div>
<div class="col-sm-4">
<h3><a class="no-color" href="/pages/recently-created">Recently Created Pages</a></h3>
<div id="recently-created-pages">
- @include('partials/entity-list', ['entities' => $recentlyCreatedPages, 'style' => 'compact'])
+ @include('partials/entity-list', [
+ 'entities' => $recentlyCreatedPages,
+ 'style' => 'compact',
+ 'emptyText' => 'No pages have been recently created'
+ ])
</div>
<h3><a class="no-color" href="/pages/recently-updated">Recently Updated Pages</a></h3>
<div id="recently-updated-pages">
- @include('partials/entity-list', ['entities' => $recentlyUpdatedPages, 'style' => 'compact'])
+ @include('partials/entity-list', [
+ 'entities' => $recentlyUpdatedPages,
+ 'style' => 'compact',
+ 'emptyText' => 'No pages have been recently updated'
+ ])
</div>
</div>
-{{--Requires an entity to be passed with the name $entity--}}
-
@if(count($activity) > 0)
<div class="activity-list">
@foreach($activity as $activityItem)
@endforeach
</div>
@else
- <p class="text-muted">New activity will show up here.</p>
+ <p class="text-muted">No activity to show</p>
@endif
\ No newline at end of file