]> BookStack Code Mirror - bookstack/blob - resources/views/pages/list-item.blade.php
1. Fixed translation for Copy and Reply
[bookstack] / resources / views / pages / list-item.blade.php
1 <div class="page {{$page->draft ? 'draft' : ''}} entity-list-item" data-entity-type="page" data-entity-id="{{$page->id}}">
2     <h4>
3         @if (isset($showPath) && $showPath)
4             <a href="{{ $page->book->getUrl() }}" class="text-book">
5                 @icon('book'){{ $page->book->getShortName() }}
6             </a>
7             <span class="text-muted">&nbsp;&nbsp;&raquo;&nbsp;&nbsp;</span>
8             @if($page->chapter)
9                 <a href="{{ $page->chapter->getUrl() }}" class="text-chapter">
10                     @icon('chapter'){{ $page->chapter->getShortName() }}
11                 </a>
12                 <span class="text-muted">&nbsp;&nbsp;&raquo;&nbsp;&nbsp;</span>
13             @endif
14         @endif
15         <a href="{{ $page->getUrl() }}" class="text-page entity-list-item-link">@icon('page')<span class="entity-list-item-name break-text">{{ $page->name }}</span></a>
16     </h4>
17
18     <div class="entity-item-snippet">
19         @if(isset($page->searchSnippet))
20             <p class="text-muted break-text">{!! $page->searchSnippet !!}</p>
21         @else
22             <p class="text-muted break-text">{{ $page->getExcerpt() }}</p>
23         @endif
24     </div>
25
26     @if(isset($style) && $style === 'detailed')
27         <div class="row meta text-muted text-small">
28             <div class="col-md-6">
29                 @include('partials.entity-meta', ['entity' => $page])
30             </div>
31             <div class="col-md-6">
32                 <a class="text-book" href="{{ $page->book->getUrl() }}">@icon('book'){{ $page->book->getShortName(30) }}</a>
33                 <br>
34                 @if($page->chapter)
35                     <a class="text-chapter" href="{{ $page->chapter->getUrl() }}">@icon('chapter'){{ $page->chapter->getShortName(30) }}</a>
36                 @else
37                     @icon('chapter') {{ trans('entities.pages_not_in_chapter') }}
38                 @endif
39             </div>
40         </div>
41     @endif
42
43
44 </div>