]> BookStack Code Mirror - bookstack/blob - resources/views/chapters/export.blade.php
2c15fbd57d11d54bace8a135f1cff3c46e350bf7
[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 </head>
25 <body>
26 <div class="container">
27     <div class="row">
28         <div class="col-md-8 col-md-offset-2">
29             <div class="page-content">
30
31                 <h1 style="font-size: 4.8em">{{$chapter->name}}</h1>
32
33                 <p>{{ $chapter->description }}</p>
34
35                 @if(count($pages) > 0)
36                 <ul class="contents">
37                     @foreach($pages as $page)
38                         <li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li>
39                     @endforeach
40                 </ul>
41                 @endif
42
43                 @foreach($pages as $page)
44                     <div class="page-break"></div>
45                     <h1 id="page-{{$page->id}}">{{ $page->name }}</h1>
46                     {!! $page->html !!}
47                 @endforeach
48
49             </div>
50         </div>
51     </div>
52 </div>
53 </body>
54 </html>