mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 19:26:38 -05:00
Fix highlighting the settings page while inside it
This commit is contained in:
parent
2f2ba60186
commit
5393d352e7
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
@extends('templates.base', [ 'title' => 'Dashboard' ])
|
@extends('templates.base', [ 'title' => 'Dashboard' ])
|
||||||
@set('current_page', preg_replace([ '/https?:\/\/[^\/]*\/dashboard\/[^\/]*\//', '/\/.*/' ], [ '', '' ], Request::url()))
|
@set('current_page', preg_match('/\/settings$/', Request::url()) ? 'settings' : preg_replace([ '/https?:\/\/[^\/]*\/dashboard\/[^\/]*\//', '/\/.*/' ], [ '', '' ], Request::url()))
|
||||||
|
|
||||||
@section('page-includes')
|
@section('page-includes')
|
||||||
<script src="/js/lib-dashboard.js?version={{ Version::get() }}"></script>
|
<script src="/js/lib-dashboard.js?version={{ Version::get() }}"></script>
|
||||||
|
|
Loading…
Reference in a new issue