]> BookStack Code Mirror - bookstack/blob - resources/views/base.blade.php
Fixed long words breaking tables
[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="/bower/material-design-iconic-font/dist/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     <script src="/bower/jquery-sortable/source/js/jquery-sortable.js"></script>
20
21     @yield('head')
22 </head>
23 <body class="@yield('body-class')" id="app">
24
25     @if(Session::has('success'))
26         <div class="notification anim pos">
27             <i class="zmdi zmdi-mood"></i> <span>{{ Session::get('success') }}</span>
28         </div>
29     @endif
30
31     @if(Session::has('error'))
32         <div class="notification anim neg stopped">
33             <i class="zmdi zmdi-alert-circle"></i> <span>{{ Session::get('error') }}</span>
34         </div>
35     @endif
36
37     <header id="header">
38         <div class="container">
39             <div class="row">
40                 <div class="col-lg-4 col-sm-4">
41                     <a href="/" class="logo">
42                         @if(Setting::get('app-logo', '') !== 'none')
43                             <img class="logo-image" src="{{ Setting::get('app-logo', '') === '' ? '/logo.png' : Setting::get('app-logo', '') }}" alt="Logo">
44                         @endif
45                         <span class="logo-text">{{ Setting::get('app-name', 'BookStack') }}</span>
46                     </a>
47                 </div>
48                 <div class="col-lg-4 col-sm-3 text-center">
49                     <form action="/search/all" method="GET" class="search-box">
50                         <input type="text" name="term" tabindex="2" value="{{ isset($searchTerm) ? $searchTerm : '' }}">
51                         <button class="text-button"><i class="zmdi zmdi-search"></i></button>
52                     </form>
53                 </div>
54                 <div class="col-lg-4 col-sm-5">
55                     <div class="float right">
56                         <div class="links text-center">
57                             <a href="/books"><i class="zmdi zmdi-book"></i>Books</a>
58                             @if($currentUser->can('settings-update'))
59                                 <a href="/settings"><i class="zmdi zmdi-settings"></i>Settings</a>
60                             @endif
61                             @if(!$signedIn)
62                                 <a href="/login"><i class="zmdi zmdi-sign-in"></i>Sign In</a>
63                             @endif
64                         </div>
65                         @if($signedIn)
66                             <div class="dropdown-container" data-dropdown>
67                                 <span class="user-name" data-dropdown-toggle>
68                                     <img class="avatar" src="{{$currentUser->getAvatar(30)}}" alt="{{ $currentUser->name }}">
69                                     <span class="name">{{ $currentUser->name }}</span> <i class="zmdi zmdi-caret-down"></i>
70                                 </span>
71                                 <ul>
72                                     <li>
73                                         <a href="/users/{{$currentUser->id}}" class="text-primary"><i class="zmdi zmdi-edit zmdi-hc-lg"></i>Edit Profile</a>
74                                     </li>
75                                     <li>
76                                         <a href="/logout" class="text-neg"><i class="zmdi zmdi-run zmdi-hc-lg"></i>Logout</a>
77                                     </li>
78                                 </ul>
79                             </div>
80                         @endif
81
82                     </div>
83                 </div>
84             </div>
85         </div>
86     </header>
87
88     <section id="content" class="block">
89         @yield('content')
90     </section>
91
92 @yield('bottom')
93 <script src="{{ elixir('js/common.js') }}"></script>
94 </body>
95 </html>