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