1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-10 04:02:28 +01:00
polr/resources/views/layouts/base.blade.php

86 lines
3.0 KiB
PHP
Raw Normal View History

<!--
2015-11-07 02:25:48 +01:00
Polr, a minimalist URL shortening platform.
Copyright (C) 2013-2017 Chaoyi Zha
2015-11-07 02:25:48 +01:00
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
2015-11-07 02:25:48 +01:00
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-->
<!DOCTYPE html>
2016-08-02 01:05:22 +02:00
<html ng-app="polr">
<head>
<title>@section('title'){{env('APP_NAME')}}@show</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
{{-- Leave this for stats --}}
<meta name="generator" content="Polr {{env('POLR_VERSION')}}" />
@yield('meta')
2015-12-28 22:33:17 +01:00
{{-- Load Stylesheets --}}
@if (env('APP_STYLESHEET'))
<link rel="stylesheet" href="{{env('APP_STYLESHEET')}}">
@else
<link rel="stylesheet" href="/css/default-bootstrap.min.css">
@endif
2015-12-28 22:33:17 +01:00
<link href="/css/base.css" rel="stylesheet">
<link href="/css/toastr.min.css" rel="stylesheet">
<link href="/css/font-awesome.min.css" rel="stylesheet">
<link rel="shortcut icon" href="/favicon.ico">
@yield('css')
</head>
<body>
@include('snippets.navbar')
<div class="container">
<div class="content-div @if (!isset($no_div_padding)) content-div-padding @endif @if (isset($large)) jumbotron large-content-div @endif">
@yield('content')
</div>
</div>
2015-12-28 22:33:17 +01:00
{{-- Load header JavaScript --}}
<script src='/js/constants.js'></script>
<script src="/js/jquery-1.11.3.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
2016-08-02 01:05:22 +02:00
<script src='/js/angular.min.js'></script>
2015-12-28 22:33:17 +01:00
<script src='/js/toastr.min.js'></script>
<script src='/js/base.js'></script>
2016-08-02 01:05:22 +02:00
2015-12-28 22:33:17 +01:00
<script>
@if (Session::has('info'))
toastr["info"](`{{ str_replace('`', '\`', session('info')) }}`, "Info")
2015-12-28 22:33:17 +01:00
@endif
@if (Session::has('error'))
toastr["error"](`{{str_replace('`', '\`', session('error')) }}`, "Error")
2015-12-28 22:33:17 +01:00
@endif
@if (Session::has('warning'))
toastr["warning"](`{{ str_replace('`', '\`', session('warning')) }}`, "Warning")
2015-12-28 22:33:17 +01:00
@endif
@if (Session::has('success'))
toastr["success"](`{{ str_replace('`', '\`', session('success')) }}`, "Success")
2015-12-28 22:33:17 +01:00
@endif
@if (count($errors) > 0)
// Handle Lumen validation errors
@foreach ($errors->all() as $error)
toastr["error"](`{{ str_replace('`', '\`', $error) }}`, "Error")
@endforeach
@endif
2015-12-28 22:33:17 +01:00
</script>
@yield('js')
</body>
</html>