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