#61: Album breadcrumbs in admin panel now include full path of parent albums
This commit is contained in:
parent
2bbaa81ffe
commit
04d1e59778
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
// Version number of Blue Twilight
|
// Version number of Blue Twilight
|
||||||
'version' => '2.1.0',
|
'version' => '2.1.1-alpha.1',
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
||||||
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
||||||
<li class="breadcrumb-item"><a href="{{ route('albums.index') }}">@lang('navigation.breadcrumb.albums')</a></li>
|
<li class="breadcrumb-item"><a href="{{ route('albums.index') }}">@lang('navigation.breadcrumb.albums')</a></li>
|
||||||
<li class="breadcrumb-item"><a href="{{ route('albums.show', ['id' => $album->id]) }}">{{ $album->name }}</a></li>
|
@include(Theme::viewName('partials.admin_album_breadcrumb'), ['show_current_link' => true])
|
||||||
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.delete_album')</li>
|
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.delete_album')</li>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
||||||
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
||||||
<li class="breadcrumb-item"><a href="{{ route('albums.index') }}">@lang('navigation.breadcrumb.albums')</a></li>
|
<li class="breadcrumb-item"><a href="{{ route('albums.index') }}">@lang('navigation.breadcrumb.albums')</a></li>
|
||||||
<li class="breadcrumb-item"><a href="{{ route('albums.show', ['id' => $album->id]) }}">{{ $album->name }}</a></li>
|
@include(Theme::viewName('partials.admin_album_breadcrumb'), ['show_current_link' => true])
|
||||||
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.edit_album')</li>
|
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.edit_album')</li>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@ -5,7 +5,13 @@
|
|||||||
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
||||||
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
||||||
<li class="breadcrumb-item"><a href="{{ route('albums.index') }}">@lang('navigation.breadcrumb.albums')</a></li>
|
<li class="breadcrumb-item"><a href="{{ route('albums.index') }}">@lang('navigation.breadcrumb.albums')</a></li>
|
||||||
<li class="breadcrumb-item active">{{ $album->name }}</li>
|
@foreach ($album->albumParentTree() as $parentAlbum)
|
||||||
|
@if ($parentAlbum->id == $album->id)
|
||||||
|
<li class="breadcrumb-item active">{{ $album->name }}</li>
|
||||||
|
@else
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('albums.show', ['id' => $parentAlbum->id]) }}">{{ $parentAlbum->name }}</a></li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
@foreach ($album->albumParentTree() as $parentAlbum)
|
||||||
|
@if ($parentAlbum->id == $album->id)
|
||||||
|
@if (!empty($show_current_link) && $show_current_link)
|
||||||
|
<li class="breadcrumb-item active"><a href="{{ route('albums.show', ['id' => $album->id]) }}">{{ $album->name }}</a></li>
|
||||||
|
@else
|
||||||
|
<li class="breadcrumb-item active">{{ $album->name }}</li>
|
||||||
|
@endif
|
||||||
|
@else
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('albums.show', ['id' => $parentAlbum->id]) }}">{{ $parentAlbum->name }}</a></li>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
Loading…
Reference in New Issue
Block a user