BookStack/resources/views/home/parts/sidebar.blade.php
Dan Brown 197caddf96
Changed homepage card header links to be bottom-card-links
The old links in the headers were not obvious. This changes the
header-based links to instead be a link at the bottom of the card.

Related to #3046
2021-11-23 18:18:49 +00:00

43 lines
1.5 KiB
PHP

@if(count($draftPages) > 0)
<div id="recent-drafts" class="mb-xl">
<h5>{{ trans('entities.my_recent_drafts') }}</h5>
@include('entities.list', ['entities' => $draftPages, 'style' => 'compact'])
</div>
@endif
@if(count($favourites) > 0)
<div id="top-favourites" class="mb-xl">
<h5>{{ trans('entities.my_most_viewed_favourites') }}</h5>
@include('entities.list', [
'entities' => $favourites,
'style' => 'compact',
])
<a href="{{ url('/favourites') }}" class="text-muted block py-xs">{{ trans('common.view_all') }}</a>
</div>
@endif
<div class="mb-xl">
<h5>{{ trans('entities.' . (auth()->check() ? 'my_recently_viewed' : 'books_recent')) }}</h5>
@include('entities.list', [
'entities' => $recents,
'style' => 'compact',
'emptyText' => auth()->check() ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
])
</div>
<div class="mb-xl">
<h5>{{ trans('entities.recently_updated_pages') }}</h5>
<div id="recently-updated-pages">
@include('entities.list', [
'entities' => $recentlyUpdatedPages,
'style' => 'compact',
'emptyText' => trans('entities.no_pages_recently_updated')
])
</div>
<a href="{{ url('/pages/recently-updated') }}" class="text-muted block py-xs">{{ trans('common.view_all') }}</a>
</div>
<div id="recent-activity" class="mb-xl">
<h5>{{ trans('entities.recent_activity') }}</h5>
@include('common.activity-list', ['activity' => $activity])
</div>