]> BookStack Code Mirror - bookstack/blob - resources/views/base.blade.php
ca73551b2abfa1f5ea412904e8d30c84f7437c63
[bookstack] / resources / views / base.blade.php
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <title>BookStack</title>
5
6     <!-- Meta-->
7     <meta name="viewport" content="width=device-width">
8     <meta name="token" content="{{ csrf_token() }}">
9     <meta charset="utf-8">
10
11     <!-- Styles and Fonts -->
12     <link rel="stylesheet" href="{{ elixir('css/styles.css') }}">
13     <link rel="stylesheet" media="print" href="{{ elixir('css/print-styles.css') }}">
14     <link href='//fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,300italic,100,300' rel='stylesheet' type='text/css'>
15     <link rel="stylesheet" href="/libs/material-design-iconic-font/css/material-design-iconic-font.min.css">
16
17     <!-- Scripts -->
18     <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
19
20     @yield('head')
21 </head>
22 <body class="@yield('body-class')" id="app">
23
24     @if(Session::has('success'))
25         <div class="notification anim pos">
26             <i class="zmdi zmdi-mood"></i> <span>{{ Session::get('success') }}</span>
27         </div>
28     @endif
29
30     @if(Session::has('error'))
31         <div class="notification anim neg stopped">
32             <i class="zmdi zmdi-alert-circle"></i> <span>{{ Session::get('error') }}</span>
33         </div>
34     @endif
35
36     <header id="header">
37         <div class="container">
38             <div class="row">
39                 <div class="col-lg-4 col-sm-4">
40                     <a href="/" class="logo">
41                         @if(Setting::get('app-logo', '') !== 'none')
42                             <img class="logo-image" src="{{ Setting::get('app-logo', '') === '' ? '/logo.png' : Setting::get('app-logo', '') }}" alt="Logo">
43                         @endif
44                         <span class="logo-text">{{ Setting::get('app-name', 'BookStack') }}</span>
45                     </a>
46                 </div>
47                 <div class="col-lg-4 col-sm-3 text-center">
48                     <form action="/search/all" method="GET" class="search-box">
49                         <input id="header-search-box-input" type="text" name="term" tabindex="2" value="{{ isset($searchTerm) ? $searchTerm : '' }}">
50                         <button id="header-search-box-button" type="submit" class="text-button"><i class="zmdi zmdi-search"></i></button>
51                     </form>
52                 </div>
53                 <div class="col-lg-4 col-sm-5">
54                     <div class="float right">
55                         <div class="links text-center">
56                             <a href="/books"><i class="zmdi zmdi-book"></i>Books</a>
57                             @if($currentUser->can('settings-update'))
58                                 <a href="/settings"><i class="zmdi zmdi-settings"></i>Settings</a>
59                             @endif
60                             @if(!$signedIn)
61                                 <a href="/login"><i class="zmdi zmdi-sign-in"></i>Sign In</a>
62                             @endif
63                         </div>
64                         @if($signedIn)
65                             <div class="dropdown-container" data-dropdown>
66                                 <span class="user-name" data-dropdown-toggle>
67                                     <img class="avatar" src="{{$currentUser->getAvatar(30)}}" alt="{{ $currentUser->name }}">
68                                     <span class="name">{{ $currentUser->name }}</span> <i class="zmdi zmdi-caret-down"></i>
69                                 </span>
70                                 <ul>
71                                     <li>
72                                         <a href="/users/{{$currentUser->id}}" class="text-primary"><i class="zmdi zmdi-edit zmdi-hc-lg"></i>Edit Profile</a>
73                                     </li>
74                                     <li>
75                                         <a href="/logout" class="text-neg"><i class="zmdi zmdi-run zmdi-hc-lg"></i>Logout</a>
76                                     </li>
77                                 </ul>
78                             </div>
79                         @endif
80
81                     </div>
82                 </div>
83             </div>
84         </div>
85     </header>
86
87     <section id="content" class="block">
88         @yield('content')
89     </section>
90
91 @yield('bottom')
92 <script src="{{ elixir('js/common.js') }}"></script>
93 </body>
94 </html>