]> BookStack Code Mirror - bookstack/blob - resources/views/shelves/show.blade.php
Updated empty container item states
[bookstack] / resources / views / shelves / show.blade.php
1 @extends('tri-layout')
2
3 @section('body')
4
5     <div class="mb-s">
6         @include('partials.breadcrumbs', ['crumbs' => [
7             $shelf,
8         ]])
9     </div>
10
11     <div class="card content-wrap">
12         <h1 class="break-text">{{$shelf->name}}</h1>
13         <div class="book-content">
14             <p class="text-muted">{!! nl2br(e($shelf->description)) !!}</p>
15             @if(count($books) > 0)
16                 <div class="entity-list">
17                     @foreach($books as $book)
18                         @include('books.list-item', ['book' => $book])
19                     @endforeach
20                 </div>
21             @else
22                 <div class="mt-xl">
23                     <hr>
24                     <p class="text-muted italic mt-xl mb-m">{{ trans('entities.shelves_empty_contents') }}</p>
25                     <div class="icon-list inline block">
26                         @if(userCan('bookshelf-update', $shelf))
27                             <a href="{{ $shelf->getUrl('/edit') }}" class="icon-list-item text-bookshelf">
28                                 <span class="icon">@icon('edit')</span>
29                                 <span>{{ trans('entities.shelves_edit_and_assign') }}</span>
30                             </a>
31                         @endif
32                     </div>
33                 </div>
34             @endif
35         </div>
36     </div>
37
38 @stop
39
40 @section('left')
41
42     @if($shelf->tags->count() > 0)
43         <div id="tags" class="mb-xl">
44             @include('components.tag-list', ['entity' => $shelf])
45         </div>
46     @endif
47
48     <div id="details" class="mb-xl">
49         <h5>{{ trans('common.details') }}</h5>
50         <div class="text-small text-muted blended-links">
51             @include('partials.entity-meta', ['entity' => $shelf])
52             @if($shelf->restricted)
53                 <div class="active-restriction">
54                     @if(userCan('restrictions-manage', $shelf))
55                         <a href="{{ $shelf->getUrl('/permissions') }}">@icon('lock'){{ trans('entities.shelves_permissions_active') }}</a>
56                     @else
57                         @icon('lock'){{ trans('entities.shelves_permissions_active') }}
58                     @endif
59                 </div>
60             @endif
61         </div>
62     </div>
63
64     @if(count($activity) > 0)
65         <div class="mb-xl">
66             <h5>{{ trans('entities.recent_activity') }}</h5>
67             @include('partials.activity-list', ['activity' => $activity])
68         </div>
69     @endif
70 @stop
71
72 @section('right')
73     <div class="actions mb-xl">
74         <h5>{{ trans('common.actions') }}</h5>
75         <div class="icon-list text-primary">
76
77             @if(userCan('bookshelf-update', $shelf))
78                 <a href="{{ $shelf->getUrl('/edit') }}" class="icon-list-item">
79                     <span>@icon('edit')</span>
80                     <span>{{ trans('common.edit') }}</span>
81                 </a>
82             @endif
83
84             @if(userCan('restrictions-manage', $shelf))
85                 <a href="{{ $shelf->getUrl('/permissions') }}" class="icon-list-item">
86                     <span>@icon('lock')</span>
87                     <span>{{ trans('entities.permissions') }}</span>
88                 </a>
89             @endif
90
91             @if(userCan('bookshelf-delete', $shelf))
92                 <a href="{{ $shelf->getUrl('/delete') }}" class="icon-list-item">
93                     <span>@icon('delete')</span>
94                     <span>{{ trans('common.delete') }}</span>
95                 </a>
96             @endif
97
98         </div>
99     </div>
100 @stop
101
102
103
104