Fixes issue with DOCTYPE being discarded on JS injected views
This commit is contained in:
parent
b165f04b78
commit
da003efb03
4 changed files with 14 additions and 11 deletions
|
@ -14,8 +14,7 @@ return [
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'bind_js_vars_to_this_view' => [
|
'bind_js_vars_to_this_view' => [
|
||||||
'layouts.master',
|
'layouts.scripts',
|
||||||
'layouts.admin',
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -26,7 +26,6 @@
|
||||||
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
|
||||||
<meta name="_token" content="{{ csrf_token() }}">
|
<meta name="_token" content="{{ csrf_token() }}">
|
||||||
|
|
||||||
|
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
|
<link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon.png">
|
||||||
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
|
<link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
|
||||||
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
|
<link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
|
||||||
|
@ -36,6 +35,8 @@
|
||||||
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
|
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
|
||||||
<meta name="theme-color" content="#367fa9">
|
<meta name="theme-color" content="#367fa9">
|
||||||
|
|
||||||
|
@include('layouts.scripts')
|
||||||
|
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
{!! Theme::css('vendor/select2/select2.min.css') !!}
|
{!! Theme::css('vendor/select2/select2.min.css') !!}
|
||||||
{!! Theme::css('vendor/bootstrap/bootstrap.min.css') !!}
|
{!! Theme::css('vendor/bootstrap/bootstrap.min.css') !!}
|
||||||
|
@ -75,13 +76,13 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="#" data-action="control-sidebar" data-toggle="tooltip" data-placement="bottom" title="Quick Access"><i class="fa fa-fighter-jet" style="margin-top:4px;padding-bottom:2px;"></i></a>
|
<a href="#" data-action="control-sidebar" data-toggle="tooltip" data-placement="bottom" title="Quick Access"><i class="fa fa-fighter-jet"></i></a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<li><a href="{{ route('index') }}" data-toggle="tooltip" data-placement="bottom" title="Exit Admin Control"><i class="fa fa-server" style="margin-top:4px;padding-bottom:2px;"></i></a></li>
|
<li><a href="{{ route('index') }}" data-toggle="tooltip" data-placement="bottom" title="Exit Admin Control"><i class="fa fa-server"></i></a></li>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<li><a href="{{ route('auth.logout') }}" data-toggle="tooltip" data-placement="bottom" title="Logout"><i class="fa fa-power-off" style="margin-top:4px;padding-bottom:2px;"></i></a></li>
|
<li><a href="{{ route('auth.logout') }}" data-toggle="tooltip" data-placement="bottom" title="Logout"><i class="fa fa-power-off"></i></a></li>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -171,8 +172,8 @@
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<footer class="main-footer">
|
<footer class="main-footer">
|
||||||
<div class="pull-right hidden-xs small text-gray">
|
<div class="pull-right hidden-xs small text-gray" style="margin-right:10px;">
|
||||||
<strong>v</strong> {{ config('app.version') }}
|
<strong>v</strong> {{ config('app.version') }} <small class="muted muted-hover"><a href="https://patreon.com/pterry" target="_blank"><i class="fa fa-credit-card"></i></a></small>
|
||||||
</div>
|
</div>
|
||||||
Copyright © 2015 - {{ date('Y') }} <a href="https://pterodactyl.io/">Pterodactyl Software</a>.
|
Copyright © 2015 - {{ date('Y') }} <a href="https://pterodactyl.io/">Pterodactyl Software</a>.
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -35,6 +35,8 @@
|
||||||
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
|
<meta name="msapplication-config" content="/favicons/browserconfig.xml">
|
||||||
<meta name="theme-color" content="#367fa9">
|
<meta name="theme-color" content="#367fa9">
|
||||||
|
|
||||||
|
@include('layouts.scripts')
|
||||||
|
|
||||||
@section('scripts')
|
@section('scripts')
|
||||||
{!! Theme::css('vendor/bootstrap/bootstrap.min.css') !!}
|
{!! Theme::css('vendor/bootstrap/bootstrap.min.css') !!}
|
||||||
{!! Theme::css('vendor/adminlte/admin.min.css') !!}
|
{!! Theme::css('vendor/adminlte/admin.min.css') !!}
|
||||||
|
@ -73,15 +75,15 @@
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="#" data-action="control-sidebar" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.servers') }}"><i class="fa fa-server" style="margin-top:4px;padding-bottom:2px;"></i></a>
|
<a href="#" data-action="control-sidebar" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.servers') }}"><i class="fa fa-server"></i></a>
|
||||||
</li>
|
</li>
|
||||||
@if(Auth::user()->isRootAdmin())
|
@if(Auth::user()->isRootAdmin())
|
||||||
<li>
|
<li>
|
||||||
<li><a href="{{ route('admin.index') }}" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.admin_cp') }}"><i class="fa fa-gears" style="margin-top:4px;padding-bottom:2px;"></i></a></li>
|
<li><a href="{{ route('admin.index') }}" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.admin_cp') }}"><i class="fa fa-gears"></i></a></li>
|
||||||
</li>
|
</li>
|
||||||
@endif
|
@endif
|
||||||
<li>
|
<li>
|
||||||
<li><a href="{{ route('auth.logout') }}" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.logout') }}"><i class="fa fa-power-off" style="margin-top:4px;padding-bottom:2px;"></i></a></li>
|
<li><a href="{{ route('auth.logout') }}" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.logout') }}"><i class="fa fa-power-off"></i></a></li>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
1
resources/themes/pterodactyl/layouts/scripts.blade.php
Normal file
1
resources/themes/pterodactyl/layouts/scripts.blade.php
Normal file
|
@ -0,0 +1 @@
|
||||||
|
{{-- Just here as a binder for dynamically rendered content. --}}
|
Loading…
Reference in a new issue