]> BookStack Code Mirror - bookstack/blob - resources/views/common/home-sidebar.blade.php
Added front-end toggle and testing of inline attachments
[bookstack] / resources / views / common / home-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('partials.entity-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>
11             <a href="{{ url('/favourites') }}" class="no-color">{{ trans('entities.my_most_viewed_favourites') }}</a>
12         </h5>
13         @include('partials.entity-list', [
14             'entities' => $favourites,
15             'style' => 'compact',
16         ])
17     </div>
18 @endif
19
20 <div class="mb-xl">
21     <h5>{{ trans('entities.' . (auth()->check() ? 'my_recently_viewed' : 'books_recent')) }}</h5>
22     @include('partials.entity-list', [
23         'entities' => $recents,
24         'style' => 'compact',
25         'emptyText' => auth()->check() ? trans('entities.no_pages_viewed') : trans('entities.books_empty')
26         ])
27 </div>
28
29 <div class="mb-xl">
30     <h5><a class="no-color" href="{{ url("/pages/recently-updated") }}">{{ trans('entities.recently_updated_pages') }}</a></h5>
31     <div id="recently-updated-pages">
32         @include('partials.entity-list', [
33         'entities' => $recentlyUpdatedPages,
34         'style' => 'compact',
35         'emptyText' => trans('entities.no_pages_recently_updated')
36         ])
37     </div>
38 </div>
39
40 <div id="recent-activity" class="mb-xl">
41     <h5>{{ trans('entities.recent_activity') }}</h5>
42     @include('partials.activity-list', ['activity' => $activity])
43 </div>