2018-05-20 17:11:56 +08:00
|
|
|
@if(count($draftPages) > 0)
|
2019-04-07 00:31:59 +08:00
|
|
|
<div id="recent-drafts" class="mb-xl">
|
|
|
|
<h5>{{ trans('entities.my_recent_drafts') }}</h5>
|
|
|
|
@include('partials.entity-list', ['entities' => $draftPages, 'style' => 'compact'])
|
2018-05-20 17:11:56 +08:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2019-04-07 00:31:59 +08:00
|
|
|
<div class="mb-xl">
|
|
|
|
<h5>{{ trans('entities.' . ($signedIn ? 'my_recently_viewed' : 'books_recent')) }}</h5>
|
|
|
|
@include('partials.entity-list', [
|
2018-05-20 17:11:56 +08:00
|
|
|
'entities' => $recents,
|
|
|
|
'style' => 'compact',
|
|
|
|
'emptyText' => $signedIn ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
|
|
|
|
])
|
|
|
|
</div>
|
|
|
|
|
2019-04-07 00:31:59 +08:00
|
|
|
<div class="mb-xl">
|
2019-08-04 21:26:39 +08:00
|
|
|
<h5><a class="no-color" href="{{ url("/pages/recently-updated") }}">{{ trans('entities.recently_updated_pages') }}</a></h5>
|
2018-05-20 17:11:56 +08:00
|
|
|
<div id="recently-updated-pages">
|
2019-04-07 00:31:59 +08:00
|
|
|
@include('partials.entity-list', [
|
2018-05-20 17:11:56 +08:00
|
|
|
'entities' => $recentlyUpdatedPages,
|
|
|
|
'style' => 'compact',
|
|
|
|
'emptyText' => trans('entities.no_pages_recently_updated')
|
|
|
|
])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-04-07 00:31:59 +08:00
|
|
|
<div id="recent-activity" class="mb-xl">
|
|
|
|
<h5>{{ trans('entities.recent_activity') }}</h5>
|
|
|
|
@include('partials.activity-list', ['activity' => $activity])
|
2018-05-20 17:11:56 +08:00
|
|
|
</div>
|