Fixes issue with DOCTYPE being discarded on JS injected views

This commit is contained in:
Dane Everitt 2017-03-30 16:23:25 -04:00
parent b165f04b78
commit da003efb03
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 14 additions and 11 deletions

View file

@ -14,8 +14,7 @@ return [
| |
*/ */
'bind_js_vars_to_this_view' => [ 'bind_js_vars_to_this_view' => [
'layouts.master', 'layouts.scripts',
'layouts.admin',
], ],
/* /*

View file

@ -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') }} &nbsp;&nbsp; <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 &copy; 2015 - {{ date('Y') }} <a href="https://pterodactyl.io/">Pterodactyl Software</a>. Copyright &copy; 2015 - {{ date('Y') }} <a href="https://pterodactyl.io/">Pterodactyl Software</a>.
</footer> </footer>

View file

@ -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>

View file

@ -0,0 +1 @@
{{-- Just here as a binder for dynamically rendered content. --}}