Fix: Current page in dossier was not marked as selected
This commit is contained in:
parent
7726b3c3e0
commit
f66aa12053
|
@ -37,7 +37,7 @@ class="{!! $mainLink['classes'] !!}"
|
||||||
<details class="drop down">
|
<details class="drop down">
|
||||||
<summary>Sommaire</summary>
|
<summary>Sommaire</summary>
|
||||||
<nav>
|
<nav>
|
||||||
@include('components.table-of-contents', ['toc' => $dossier->getDirectChildren()])
|
@include('components.table-of-contents', ['toc' => $dossier->getDirectChildren(), 'bundle' => $bundle])
|
||||||
</nav>
|
</nav>
|
||||||
</details>
|
</details>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<ul>
|
<ul>
|
||||||
@foreach ($toc as $item)
|
@foreach ($toc as $item)
|
||||||
<li>
|
<li>
|
||||||
@if ('/' . urldecode(request()->path()) . '/' === $item->getPath())
|
@if ($bundle->getPath() === $item->getPath())
|
||||||
<strong>{{ $item->getArticleTitle() }}</strong>
|
<strong>{{ $item->getArticleTitle() }}</strong>
|
||||||
@else
|
@else
|
||||||
<a href="{{ $item->getPath() }}">{{ $item->getArticleTitle() }}</a>
|
<a href="{{ $item->getPath() }}">{{ $item->getArticleTitle() }}</a>
|
||||||
@endif
|
@endif
|
||||||
@if (!empty($item->getDirectChildren()))
|
@if (!empty($item->getDirectChildren()))
|
||||||
@include('components.table-of-contents', ['toc' => $item->getDirectChildren()])
|
@include('components.table-of-contents', ['toc' => $item->getDirectChildren(), 'bundle' => $bundle])
|
||||||
@endif
|
@endif
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
Loading…
Reference in New Issue
Block a user