]> BookStack Code Mirror - bookstack/blob - resources/views/chapters/export.blade.php
57fcd16491c6c700c2e3047b73605af65226f66e
[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         {!! file_get_contents(public_path('/css/export-styles.css')) !!}
9         .page-break {
10             page-break-after: always;
11         }
12         ul.contents ul li {
13             list-style: circle;
14         }
15         @media screen {
16             .page-break {
17                 border-top: 1px solid #DDD;
18             }
19         }
20     </style>
21     @yield('head')
22 </head>
23 <body>
24 <div class="container">
25     <div class="row">
26         <div class="col-md-8 col-md-offset-2">
27             <div class="page-content">
28
29                 <h1 style="font-size: 4.8em">{{$chapter->name}}</h1>
30
31                 <p>{{ $chapter->description }}</p>
32
33                 @if(count($pages) > 0)
34                 <ul class="contents">
35                     @foreach($pages as $page)
36                         <li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li>
37                     @endforeach
38                 </ul>
39                 @endif
40
41                 @foreach($pages as $page)
42                     <div class="page-break"></div>
43                     <h1 id="page-{{$page->id}}">{{ $page->name }}</h1>
44                     {!! $page->html !!}
45                 @endforeach
46
47             </div>
48         </div>
49     </div>
50 </div>
51 </body>
52 </html>