BookStack/resources/views/common/home-sidebar.blade.php

45 lines
1.6 KiB
PHP
Raw Normal View History

@if(count($draftPages) > 0)
2019-04-06 12:31:59 -04:00
<div id="recent-drafts" class="mb-xl">
<h5>{{ trans('entities.my_recent_drafts') }}</h5>
@include('partials.entity-list', ['entities' => $draftPages, 'style' => 'compact'])
</div>
@endif
@if(count($favourites) > 0)
<div id="top-favourites" class="card mb-xl">
<h3 class="card-title">
<a href="{{ url('/favourites') }}" class="no-color">{{ trans('entities.my_most_viewed_favourites') }}</a>
</h3>
<div class="px-m">
@include('partials.entity-list', [
'entities' => $favourites,
'style' => 'compact',
])
</div>
</div>
@endif
2019-04-06 12:31:59 -04:00
<div class="mb-xl">
<h5>{{ trans('entities.' . (auth()->check() ? 'my_recently_viewed' : 'books_recent')) }}</h5>
2019-04-06 12:31:59 -04:00
@include('partials.entity-list', [
'entities' => $recents,
'style' => 'compact',
'emptyText' => auth()->check() ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
])
</div>
2019-04-06 12:31:59 -04:00
<div class="mb-xl">
<h5><a class="no-color" href="{{ url("/pages/recently-updated") }}">{{ trans('entities.recently_updated_pages') }}</a></h5>
<div id="recently-updated-pages">
2019-04-06 12:31:59 -04:00
@include('partials.entity-list', [
'entities' => $recentlyUpdatedPages,
'style' => 'compact',
'emptyText' => trans('entities.no_pages_recently_updated')
])
</div>
</div>
2019-04-06 12:31:59 -04:00
<div id="recent-activity" class="mb-xl">
<h5>{{ trans('entities.recent_activity') }}</h5>
@include('partials.activity-list', ['activity' => $activity])
</div>