2017-08-20 20:57:25 +08:00
|
|
|
@extends('simple-layout')
|
2015-08-13 01:48:26 +08:00
|
|
|
|
2017-08-20 20:57:25 +08:00
|
|
|
|
|
|
|
@section('body')
|
2016-02-20 20:37:06 +08:00
|
|
|
|
2018-10-17 01:49:16 +08:00
|
|
|
<div class="container px-xl py-l">
|
|
|
|
<a expand-toggle=".entity-list.compact .entity-item-snippet" class="text-muted">@icon('expand-text'){{ trans('common.toggle_details') }}</a>
|
|
|
|
</div>
|
2016-02-20 20:37:06 +08:00
|
|
|
|
2018-10-17 01:49:16 +08:00
|
|
|
<div class="grid contained thirds space-xl break-m" id="home-default">
|
|
|
|
<div>
|
|
|
|
@if(count($draftPages) > 0)
|
|
|
|
<div id="recent-drafts" class="card mb-xl">
|
|
|
|
<h3>{{ trans('entities.my_recent_drafts') }}</h3>
|
2018-12-02 04:28:17 +08:00
|
|
|
<div class="px-m">
|
|
|
|
@include('partials/entity-list', ['entities' => $draftPages, 'style' => 'compact'])
|
|
|
|
</div>
|
2016-03-06 06:54:53 +08:00
|
|
|
</div>
|
2018-10-17 01:49:16 +08:00
|
|
|
@endif
|
|
|
|
|
|
|
|
<div id="{{ $signedIn ? 'recently-viewed' : 'recent-books' }}" class="card mb-xl">
|
|
|
|
<h3>{{ trans('entities.' . ($signedIn ? 'my_recently_viewed' : 'books_recent')) }}</h3>
|
2018-12-02 04:28:17 +08:00
|
|
|
<div class="px-m">
|
|
|
|
@include('partials/entity-list', [
|
2018-10-17 01:49:16 +08:00
|
|
|
'entities' => $recents,
|
|
|
|
'style' => 'compact',
|
|
|
|
'emptyText' => $signedIn ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
|
|
|
|
])
|
2018-12-02 04:28:17 +08:00
|
|
|
</div>
|
2017-08-20 20:57:25 +08:00
|
|
|
</div>
|
2018-10-17 01:49:16 +08:00
|
|
|
</div>
|
2016-02-21 02:51:01 +08:00
|
|
|
|
2018-10-17 01:49:16 +08:00
|
|
|
<div>
|
|
|
|
<div id="recent-pages" class="card mb-xl">
|
|
|
|
<h3><a class="no-color" href="{{ baseUrl("/pages/recently-updated") }}">{{ trans('entities.recently_updated_pages') }}</a></h3>
|
2018-12-02 04:28:17 +08:00
|
|
|
<div id="recently-updated-pages" class="px-m">
|
2018-10-17 01:49:16 +08:00
|
|
|
@include('partials/entity-list', [
|
|
|
|
'entities' => $recentlyUpdatedPages,
|
|
|
|
'style' => 'compact',
|
|
|
|
'emptyText' => trans('entities.no_pages_recently_updated')
|
|
|
|
])
|
2016-03-06 06:54:53 +08:00
|
|
|
</div>
|
2015-08-17 03:11:21 +08:00
|
|
|
</div>
|
2018-10-17 01:49:16 +08:00
|
|
|
</div>
|
2015-11-22 01:22:14 +08:00
|
|
|
|
2018-10-17 01:49:16 +08:00
|
|
|
<div>
|
|
|
|
<div id="recent-activity">
|
|
|
|
<div class="card mb-xl">
|
|
|
|
<h3>{{ trans('entities.recent_activity') }}</h3>
|
2017-08-26 20:24:55 +08:00
|
|
|
@include('partials/activity-list', ['activity' => $activity])
|
2017-08-20 20:57:25 +08:00
|
|
|
</div>
|
2015-08-31 00:53:30 +08:00
|
|
|
</div>
|
2015-08-17 03:11:21 +08:00
|
|
|
</div>
|
2018-10-17 01:49:16 +08:00
|
|
|
|
2015-08-17 03:11:21 +08:00
|
|
|
</div>
|
2015-08-13 14:44:10 +08:00
|
|
|
|
2015-08-31 00:53:30 +08:00
|
|
|
|
2017-01-04 00:48:13 +08:00
|
|
|
@stop
|