2015-11-04 02:56:03 +01:00
|
|
|
<!--
|
2015-11-07 02:25:48 +01:00
|
|
|
Polr, a minimalist URL shortening platform.
|
2017-03-23 21:31:23 +01:00
|
|
|
Copyright (C) 2013-2017 Chaoyi Zha
|
2015-11-04 02:56:03 +01:00
|
|
|
|
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.
|
2015-11-04 02:56:03 +01:00
|
|
|
|
|
|
|
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.
|
2015-11-04 02:56:03 +01:00
|
|
|
-->
|
|
|
|
|
|
|
|
<!DOCTYPE html>
|
2016-08-02 01:05:22 +02:00
|
|
|
<html ng-app="polr">
|
2015-11-04 02:56:03 +01:00
|
|
|
<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() }}">
|
2016-08-15 07:18:25 +02:00
|
|
|
{{-- Leave this for stats --}}
|
|
|
|
<meta name="generator" content="Polr {{env('POLR_VERSION')}}" />
|
2017-02-01 22:55:29 +01:00
|
|
|
@yield('meta')
|
2015-11-04 02:56:03 +01:00
|
|
|
|
2015-12-28 22:33:17 +01:00
|
|
|
{{-- Load Stylesheets --}}
|
2016-01-18 19:17:46 +01:00
|
|
|
@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">
|
2015-11-04 02:56:03 +01:00
|
|
|
<link href="/css/font-awesome.min.css" rel="stylesheet">
|
2015-12-12 18:47:20 +01:00
|
|
|
|
2016-12-28 06:18:17 +01:00
|
|
|
<link rel="shortcut icon" href="/favicon.ico">
|
2015-11-04 02:56:03 +01:00
|
|
|
@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
|
|
|
|
2016-02-20 01:13:50 +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>
|
2015-11-06 23:19:39 +01:00
|
|
|
<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'))
|
2017-03-23 21:31:23 +01:00
|
|
|
toastr["info"](`{{ str_replace('`', '\`', session('info')) }}`, "Info")
|
2015-12-28 22:33:17 +01:00
|
|
|
@endif
|
|
|
|
@if (Session::has('error'))
|
2017-03-23 21:31:23 +01:00
|
|
|
toastr["error"](`{{str_replace('`', '\`', session('error')) }}`, "Error")
|
2015-12-28 22:33:17 +01:00
|
|
|
@endif
|
|
|
|
@if (Session::has('warning'))
|
2017-03-23 21:31:23 +01:00
|
|
|
toastr["warning"](`{{ str_replace('`', '\`', session('warning')) }}`, "Warning")
|
2015-12-28 22:33:17 +01:00
|
|
|
@endif
|
|
|
|
@if (Session::has('success'))
|
2017-03-23 21:31:23 +01:00
|
|
|
toastr["success"](`{{ str_replace('`', '\`', session('success')) }}`, "Success")
|
2015-12-28 22:33:17 +01:00
|
|
|
@endif
|
2016-12-03 21:41:24 +01:00
|
|
|
|
|
|
|
@if (count($errors) > 0)
|
|
|
|
// Handle Lumen validation errors
|
|
|
|
@foreach ($errors->all() as $error)
|
2017-03-23 21:31:23 +01:00
|
|
|
toastr["error"](`{{ str_replace('`', '\`', $error) }}`, "Error")
|
2016-12-03 21:41:24 +01:00
|
|
|
@endforeach
|
|
|
|
@endif
|
2015-12-28 22:33:17 +01:00
|
|
|
</script>
|
|
|
|
|
2015-11-04 02:56:03 +01:00
|
|
|
@yield('js')
|
|
|
|
</body>
|
|
|
|
</html>
|