mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-13 05:53:55 +08:00
a61c9c5e98
- Primarily moved and re-organised view files. - Included readme within views to document the convention. - Fixed some issues with page field select list in previous commit. - Tweaked some route names while going through. - Split some views out further. Closes #2805
46 lines
1.5 KiB
PHP
46 lines
1.5 KiB
PHP
@extends('layouts.export')
|
|
|
|
@section('title', $book->name)
|
|
|
|
@section('content')
|
|
<h1 style="font-size: 4.8em">{{$book->name}}</h1>
|
|
|
|
<p>{{ $book->description }}</p>
|
|
|
|
@if(count($bookChildren) > 0)
|
|
<ul class="contents">
|
|
@foreach($bookChildren as $bookChild)
|
|
<li><a href="#{{$bookChild->getType()}}-{{$bookChild->id}}">{{ $bookChild->name }}</a></li>
|
|
@if($bookChild->isA('chapter') && count($bookChild->visible_pages) > 0)
|
|
<ul>
|
|
@foreach($bookChild->visible_pages as $page)
|
|
<li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li>
|
|
@endforeach
|
|
</ul>
|
|
@endif
|
|
@endforeach
|
|
</ul>
|
|
@endif
|
|
|
|
@foreach($bookChildren as $bookChild)
|
|
<div class="page-break"></div>
|
|
<h1 id="{{$bookChild->getType()}}-{{$bookChild->id}}">{{ $bookChild->name }}</h1>
|
|
|
|
@if($bookChild->isA('chapter'))
|
|
<p>{{ $bookChild->description }}</p>
|
|
|
|
@if(count($bookChild->visible_pages) > 0)
|
|
@foreach($bookChild->visible_pages as $page)
|
|
<div class="page-break"></div>
|
|
<div class="chapter-hint">{{$bookChild->name}}</div>
|
|
<h1 id="page-{{$page->id}}">{{ $page->name }}</h1>
|
|
{!! $page->html !!}
|
|
@endforeach
|
|
@endif
|
|
|
|
@else
|
|
{!! $bookChild->html !!}
|
|
@endif
|
|
|
|
@endforeach
|
|
@endsection |