]> BookStack Code Mirror - bookstack/blob - resources/views/chapters/export.blade.php
Updated template test to be more stable
[bookstack] / resources / views / chapters / export.blade.php
1 <!doctype html>
2 <html lang="en">
3 <head>
4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5     <title>{{ $chapter->name }}</title>
6
7     <style>
8         @if (!app()->environment('testing'))
9         {!! file_get_contents(public_path('/dist/export-styles.css')) !!}
10         @endif
11         .page-break {
12             page-break-after: always;
13         }
14         ul.contents ul li {
15             list-style: circle;
16         }
17         @media screen {
18             .page-break {
19                 border-top: 1px solid #DDD;
20             }
21         }
22     </style>
23     @yield('head')
24     @include('partials.custom-head')
25 </head>
26 <body>
27
28 <div class="page-content">
29
30     <h1 style="font-size: 4.8em">{{$chapter->name}}</h1>
31
32     <p>{{ $chapter->description }}</p>
33
34     @if(count($pages) > 0)
35         <ul class="contents">
36             @foreach($pages as $page)
37                 <li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li>
38             @endforeach
39         </ul>
40     @endif
41
42     @foreach($pages as $page)
43         <div class="page-break"></div>
44         <h1 id="page-{{$page->id}}">{{ $page->name }}</h1>
45         {!! $page->html !!}
46     @endforeach
47
48 </div>
49
50 </body>
51 </html>