mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-02 05:43:40 +08:00
63f96c1c6f
Extracted home view sidebar into own view. Moved home and robot views into 'common' folder so that we only have layouts in the top-level views folder.
31 lines
1.2 KiB
PHP
31 lines
1.2 KiB
PHP
@if(count($draftPages) > 0)
|
|
<div id="recent-drafts" class="card">
|
|
<h3>@icon('edit') {{ trans('entities.my_recent_drafts') }}</h3>
|
|
@include('partials/entity-list', ['entities' => $draftPages, 'style' => 'compact'])
|
|
</div>
|
|
@endif
|
|
|
|
<div class="card">
|
|
<h3>@icon($signedIn ? 'view' : 'star-circle') {{ trans('entities.' . ($signedIn ? 'my_recently_viewed' : 'books_recent')) }}</h3>
|
|
@include('partials/entity-list', [
|
|
'entities' => $recents,
|
|
'style' => 'compact',
|
|
'emptyText' => $signedIn ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
|
|
])
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h3>@icon('file') <a class="no-color" href="{{ baseUrl("/pages/recently-updated") }}">{{ trans('entities.recently_updated_pages') }}</a></h3>
|
|
<div id="recently-updated-pages">
|
|
@include('partials/entity-list', [
|
|
'entities' => $recentlyUpdatedPages,
|
|
'style' => 'compact',
|
|
'emptyText' => trans('entities.no_pages_recently_updated')
|
|
])
|
|
</div>
|
|
</div>
|
|
|
|
<div id="recent-activity" class="card">
|
|
<h3>@icon('time') {{ trans('entities.recent_activity') }}</h3>
|
|
@include('partials/activity-list', ['activity' => $activity])
|
|
</div> |