1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-13 21:52:29 +01:00
polr/resources/views/layouts/base.blade.php
2016-08-14 22:18:25 -07:00

78 lines
2.6 KiB
PHP

<!--
Polr, a minimalist URL shortening platform.
Copyright (C) 2013-2016 Chaoyi Zha
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
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>
<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')}}" />
{{-- Load Stylesheets --}}
@if (env('APP_STYLESHEET'))
<link rel="stylesheet" href="{{env('APP_STYLESHEET')}}">
@else
<link rel="stylesheet" href="/css/default-bootstrap.min.css">
@endif
<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>
{{-- 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>
<script src='/js/angular.min.js'></script>
<script src='/js/toastr.min.js'></script>
<script src='/js/base.js'></script>
<script>
@if (Session::has('info'))
toastr["info"](`{{session('info')}}`, "Info")
@endif
@if (Session::has('error'))
toastr["error"](`{{session('error')}}`, "Error")
@endif
@if (Session::has('warning'))
toastr["warning"](`{{session('warning')}}`, "Warning")
@endif
@if (Session::has('success'))
toastr["success"](`{{session('success')}}`, "Success")
@endif
</script>
@yield('js')
</body>
</html>