mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-29 21:52:35 +00:00
Fixed some lib paths and seperated out duplicated notifications
This commit is contained in:
parent
b912eb9fe3
commit
b97d5704e1
@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<title>BookStack</title>
|
<title>BookStack</title>
|
||||||
|
|
||||||
<!-- Meta-->
|
<!-- Meta -->
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
<meta name="token" content="{{ csrf_token() }}">
|
<meta name="token" content="{{ csrf_token() }}">
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
@ -21,17 +21,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body class="@yield('body-class')" id="app">
|
<body class="@yield('body-class')" id="app">
|
||||||
|
|
||||||
@if(Session::has('success'))
|
@include('partials/notifications')
|
||||||
<div class="notification anim pos">
|
|
||||||
<i class="zmdi zmdi-mood"></i> <span>{{ Session::get('success') }}</span>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Session::has('error'))
|
|
||||||
<div class="notification anim neg stopped">
|
|
||||||
<i class="zmdi zmdi-alert-circle"></i> <span>{{ Session::get('error') }}</span>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<header id="header">
|
<header id="header">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
11
resources/views/partials/notifications.blade.php
Normal file
11
resources/views/partials/notifications.blade.php
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
@if(Session::has('success'))
|
||||||
|
<div class="notification anim pos">
|
||||||
|
<i class="zmdi zmdi-mood"></i> <span>{{ Session::get('success') }}</span>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@if(Session::has('error'))
|
||||||
|
<div class="notification anim neg stopped">
|
||||||
|
<i class="zmdi zmdi-alert-circle"></i> <span>{{ Session::get('error') }}</span>
|
||||||
|
</div>
|
||||||
|
@endif
|
@ -2,27 +2,24 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>BookStack</title>
|
<title>BookStack</title>
|
||||||
|
|
||||||
|
<!-- Meta -->
|
||||||
<meta name="viewport" content="width=device-width">
|
<meta name="viewport" content="width=device-width">
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
<!-- Styles and Fonts -->
|
||||||
<link rel="stylesheet" href="{{ elixir('css/styles.css') }}">
|
<link rel="stylesheet" href="{{ elixir('css/styles.css') }}">
|
||||||
|
<link rel="stylesheet" media="print" href="{{ elixir('css/print-styles.css') }}">
|
||||||
<link href='//fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,300italic,100,300' rel='stylesheet' type='text/css'>
|
<link href='//fonts.googleapis.com/css?family=Roboto:400,400italic,500,500italic,700,700italic,300italic,100,300' rel='stylesheet' type='text/css'>
|
||||||
<link rel="stylesheet" href="/bower/material-design-iconic-font/dist/css/material-design-iconic-font.min.css">
|
<link rel="stylesheet" href="/libs/material-design-iconic-font/css/material-design-iconic-font.min.css">
|
||||||
|
|
||||||
<!-- Scripts -->
|
<!-- Scripts -->
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body class="@yield('body-class')" id="app">
|
<body class="@yield('body-class')" id="app">
|
||||||
|
|
||||||
@if(Session::has('success'))
|
@include('partials/notifications')
|
||||||
<div class="notification anim pos">
|
|
||||||
<i class="zmdi zmdi-mood"></i> <span>{{ Session::get('success') }}</span>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@if(Session::has('error'))
|
|
||||||
<div class="notification anim neg stopped">
|
|
||||||
<i class="zmdi zmdi-alert-circle"></i> <span>{{ Session::get('error') }}</span>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
|
|
||||||
<header id="header">
|
<header id="header">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
Loading…
Reference in New Issue
Block a user