]> BookStack Code Mirror - bookstack/blob - resources/views/home/parts/sidebar.blade.php
Updated translator & dependency attribution before release v25.05.1
[bookstack] / resources / views / home / parts / sidebar.blade.php
1 @if(count($draftPages) > 0)
2     <div id="recent-drafts" class="mb-xl">
3         <h5>{{ trans('entities.my_recent_drafts') }}</h5>
4         @include('entities.list', ['entities' => $draftPages, 'style' => 'compact'])
5     </div>
6 @endif
7
8 @if(count($favourites) > 0)
9     <div id="top-favourites" class="mb-xl">
10         <h5>{{ trans('entities.my_most_viewed_favourites') }}</h5>
11         @include('entities.list', [
12             'entities' => $favourites,
13             'style' => 'compact',
14         ])
15         <a href="{{ url('/favourites')  }}" class="text-muted block py-xs">{{ trans('common.view_all') }}</a>
16     </div>
17 @endif
18
19 <div class="mb-xl">
20     <h5>{{ trans('entities.' . (auth()->check() ? 'my_recently_viewed' : 'books_recent')) }}</h5>
21     @include('entities.list', [
22         'entities' => $recents,
23         'style' => 'compact',
24         'emptyText' => auth()->check() ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
25         ])
26 </div>
27
28 <div class="mb-xl">
29     <h5>{{ trans('entities.recently_updated_pages') }}</h5>
30     <div id="recently-updated-pages">
31         @include('entities.list', [
32         'entities' => $recentlyUpdatedPages,
33         'style' => 'compact',
34         'emptyText' => trans('entities.no_pages_recently_updated')
35         ])
36     </div>
37     <a href="{{ url('/pages/recently-updated')  }}" class="text-muted block py-xs">{{ trans('common.view_all') }}</a>
38 </div>
39
40 <div id="recent-activity" class="mb-xl">
41     <h5>{{ trans('entities.recent_activity') }}</h5>
42     @include('common.activity-list', ['activity' => $activity])
43 </div>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.