Skip to content
This repository was archived by the owner on Nov 23, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/resources/views/layout.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</title>

@yield('before_styles')
@stack('before_styles')

<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.5 -->
Expand All @@ -32,6 +33,7 @@
<link rel="stylesheet" href="{{ asset('vendor/backpack/overlays/backpack.bold.css') }}">

@yield('after_styles')
@stack('after_styles')

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
Expand Down Expand Up @@ -109,6 +111,7 @@


@yield('before_scripts')
@stack('before_scripts')

<!-- jQuery 2.2.3 -->
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
Expand Down Expand Up @@ -140,7 +143,7 @@
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});

// Set active state on menu element
var current_url = "{{ Request::fullUrl() }}";
var full_url = current_url+location.search;
Expand All @@ -155,7 +158,7 @@ function() { return $(this).attr('href') === full_url; }
function() { return $(this).attr('href').startsWith(current_url) || current_url.startsWith($(this).attr('href')); }
);
}

$curentPageLink.parents('li').addClass('active');
{{-- Enable deep link to tab --}}
var activeTab = $('[href="' + location.hash.replace("#", "#tab_") + '"]');
Expand All @@ -168,6 +171,7 @@ function() { return $(this).attr('href').startsWith(current_url) || current_url.
@include('backpack::inc.alerts')

@yield('after_scripts')
@stack('after_scripts')

<!-- JavaScripts -->
{{-- <script src="{{ mix('js/app.js') }}"></script> --}}
Expand Down