From 4ccd6659203c6b120aa28c8006c9e02bd0632ce1 Mon Sep 17 00:00:00 2001 From: Andy Heathershaw Date: Sun, 10 Sep 2017 07:27:56 +0100 Subject: [PATCH] #28, #30: Fixed the breadcrumb on the individual photo page --- resources/views/themes/base/gallery/photo.blade.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/resources/views/themes/base/gallery/photo.blade.php b/resources/views/themes/base/gallery/photo.blade.php index 0cf83c5..d9e27d7 100644 --- a/resources/views/themes/base/gallery/photo.blade.php +++ b/resources/views/themes/base/gallery/photo.blade.php @@ -2,8 +2,14 @@ @section('title', $photo->name) @section('breadcrumb') - - + + @foreach ($album->albumParentTree() as $parentAlbum) + @if ($parentAlbum->id == $photo->album->id) + + @else + + @endif + @endforeach @endsection