mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
1d681e53e4
Changed header selection in editor to be more descriptive and to provide a wider range of styles. Closes #68
27 lines
1.4 KiB
PHP
27 lines
1.4 KiB
PHP
<div class="chapter entity-list-item" data-entity-type="chapter" data-entity-id="{{$chapter->id}}">
|
|
<h4>
|
|
@if (isset($showPath) && $showPath)
|
|
<a href="{{ $chapter->book->getUrl() }}" class="text-book">
|
|
<i class="zmdi zmdi-book"></i>{{ $chapter->book->name }}
|
|
</a>
|
|
<span class="text-muted"> » </span>
|
|
@endif
|
|
<a href="{{ $chapter->getUrl() }}" class="text-chapter entity-list-item-link">
|
|
<i class="zmdi zmdi-collection-bookmark"></i><span class="entity-list-item-name">{{ $chapter->name }}</span>
|
|
</a>
|
|
</h4>
|
|
@if(isset($chapter->searchSnippet))
|
|
<p class="text-muted">{!! $chapter->searchSnippet !!}</p>
|
|
@else
|
|
<p class="text-muted">{{ $chapter->getExcerpt() }}</p>
|
|
@endif
|
|
|
|
@if(!isset($hidePages) && count($chapter->pages) > 0)
|
|
<p class="text-muted chapter-toggle"><i class="zmdi zmdi-caret-right"></i> <i class="zmdi zmdi-file-text"></i> <span>{{ count($chapter->pages) }} Pages</span></p>
|
|
<div class="inset-list">
|
|
@foreach($chapter->pages as $page)
|
|
<h5 class="@if($page->draft) draft @endif"><a href="{{ $page->getUrl() }}" class="text-page @if($page->draft) draft @endif"><i class="zmdi zmdi-file-text"></i>{{$page->name}}</a></h5>
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
</div> |