2017-08-20 14:57:25 +02:00
|
|
|
@extends('simple-layout')
|
2015-08-12 19:48:26 +02:00
|
|
|
|
2017-08-20 14:57:25 +02:00
|
|
|
@section('body')
|
2016-02-20 13:37:06 +01:00
|
|
|
|
2019-04-14 14:01:51 +02:00
|
|
|
<div class="container px-xl py-s">
|
|
|
|
<div class="icon-list inline block">
|
|
|
|
@include('components.expand-toggle', ['target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
|
|
|
|
</div>
|
2018-10-16 19:49:16 +02:00
|
|
|
</div>
|
2016-02-20 13:37:06 +01:00
|
|
|
|
2019-04-07 10:57:48 +02:00
|
|
|
<div class="container" id="home-default">
|
2019-04-14 13:04:20 +02:00
|
|
|
<div class="grid third gap-xxl no-row-gap" >
|
2019-04-07 10:57:48 +02:00
|
|
|
<div>
|
|
|
|
@if(count($draftPages) > 0)
|
|
|
|
<div id="recent-drafts" class="card mb-xl">
|
2019-05-06 01:15:03 +02:00
|
|
|
<h3 class="card-title">{{ trans('entities.my_recent_drafts') }}</h3>
|
2019-04-07 10:57:48 +02:00
|
|
|
<div class="px-m">
|
2019-04-07 13:00:09 +02:00
|
|
|
@include('partials.entity-list', ['entities' => $draftPages, 'style' => 'compact'])
|
2019-04-07 10:57:48 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div id="{{ $signedIn ? 'recently-viewed' : 'recent-books' }}" class="card mb-xl">
|
2019-05-06 01:15:03 +02:00
|
|
|
<h3 class="card-title">{{ trans('entities.' . ($signedIn ? 'my_recently_viewed' : 'books_recent')) }}</h3>
|
2018-12-01 21:28:17 +01:00
|
|
|
<div class="px-m">
|
2019-04-07 13:00:09 +02:00
|
|
|
@include('partials.entity-list', [
|
2019-04-07 10:57:48 +02:00
|
|
|
'entities' => $recents,
|
|
|
|
'style' => 'compact',
|
|
|
|
'emptyText' => $signedIn ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
|
|
|
|
])
|
2018-12-01 21:28:17 +01:00
|
|
|
</div>
|
2016-03-05 23:54:53 +01:00
|
|
|
</div>
|
2017-08-20 14:57:25 +02:00
|
|
|
</div>
|
2016-02-20 19:51:01 +01:00
|
|
|
|
2019-04-07 10:57:48 +02:00
|
|
|
<div>
|
|
|
|
<div id="recent-pages" class="card mb-xl">
|
2019-08-04 15:26:39 +02:00
|
|
|
<h3 class="card-title"><a class="no-color" href="{{ url("/pages/recently-updated") }}">{{ trans('entities.recently_updated_pages') }}</a></h3>
|
2019-04-07 10:57:48 +02:00
|
|
|
<div id="recently-updated-pages" class="px-m">
|
2019-04-07 13:00:09 +02:00
|
|
|
@include('partials.entity-list', [
|
2019-04-07 10:57:48 +02:00
|
|
|
'entities' => $recentlyUpdatedPages,
|
|
|
|
'style' => 'compact',
|
|
|
|
'emptyText' => trans('entities.no_pages_recently_updated')
|
|
|
|
])
|
|
|
|
</div>
|
2016-03-05 23:54:53 +01:00
|
|
|
</div>
|
2015-08-16 21:11:21 +02:00
|
|
|
</div>
|
2015-11-21 18:22:14 +01:00
|
|
|
|
2019-04-07 10:57:48 +02:00
|
|
|
<div>
|
|
|
|
<div id="recent-activity">
|
|
|
|
<div class="card mb-xl">
|
2019-05-06 01:15:03 +02:00
|
|
|
<h3 class="card-title">{{ trans('entities.recent_activity') }}</h3>
|
2019-04-07 13:00:09 +02:00
|
|
|
@include('partials.activity-list', ['activity' => $activity])
|
2019-04-07 10:57:48 +02:00
|
|
|
</div>
|
2017-08-20 14:57:25 +02:00
|
|
|
</div>
|
2015-08-30 18:53:30 +02:00
|
|
|
</div>
|
2018-10-16 19:49:16 +02:00
|
|
|
|
2019-04-07 10:57:48 +02:00
|
|
|
</div>
|
2015-08-16 21:11:21 +02:00
|
|
|
</div>
|
2015-08-13 08:44:10 +02:00
|
|
|
|
2015-08-30 18:53:30 +02:00
|
|
|
|
2019-04-07 10:57:48 +02:00
|
|
|
|
2017-01-03 17:48:13 +01:00
|
|
|
@stop
|