From eaba161f5c5732f46162c9374f57feaf88550fc0 Mon Sep 17 00:00:00 2001 From: Andy Heathershaw Date: Sat, 11 Aug 2018 09:30:48 +0100 Subject: [PATCH] #19: Added a link to user's public profile page, if enabled. Removed a stray semi-colon in album views. Updated user's profile page to use the new partial view for child albums. --- resources/lang/en/navigation.php | 1 + .../base/gallery/album_default.blade.php | 2 +- .../themes/base/gallery/album_empty.blade.php | 2 +- .../base/gallery/album_slideshow.blade.php | 2 +- .../base/gallery/user_profile.blade.php | 20 ++----------- .../partials/gallery_child_album.blade.php | 28 +++++++++++++------ .../themes/base/partials/navbar.blade.php | 4 +++ 7 files changed, 29 insertions(+), 30 deletions(-) diff --git a/resources/lang/en/navigation.php b/resources/lang/en/navigation.php index 7f0c807..dc352b7 100644 --- a/resources/lang/en/navigation.php +++ b/resources/lang/en/navigation.php @@ -33,6 +33,7 @@ return [ 'labels' => 'Labels', 'login' => 'Login', 'logout' => 'Logout', + 'public_profile_page' => 'My public profile', 'quick_post' => 'Quick Upload', 'register' => 'Register', 'statistics' => 'Statistics' diff --git a/resources/views/themes/base/gallery/album_default.blade.php b/resources/views/themes/base/gallery/album_default.blade.php index 47f0b31..98f5a3b 100644 --- a/resources/views/themes/base/gallery/album_default.blade.php +++ b/resources/views/themes/base/gallery/album_default.blade.php @@ -57,7 +57,7 @@
@foreach ($child_albums as $childAlbum) - @include(Theme::viewName('partials.gallery_child_album')); + @include(Theme::viewName('partials.gallery_child_album')) @endforeach
diff --git a/resources/views/themes/base/gallery/album_empty.blade.php b/resources/views/themes/base/gallery/album_empty.blade.php index ccad304..6197a25 100644 --- a/resources/views/themes/base/gallery/album_empty.blade.php +++ b/resources/views/themes/base/gallery/album_empty.blade.php @@ -32,7 +32,7 @@
@foreach ($child_albums as $childAlbum) - @include(Theme::viewName('partials.gallery_child_album')); + @include(Theme::viewName('partials.gallery_child_album')) @endforeach
@endif diff --git a/resources/views/themes/base/gallery/album_slideshow.blade.php b/resources/views/themes/base/gallery/album_slideshow.blade.php index d0e35ce..70f2279 100644 --- a/resources/views/themes/base/gallery/album_slideshow.blade.php +++ b/resources/views/themes/base/gallery/album_slideshow.blade.php @@ -64,7 +64,7 @@
@foreach ($child_albums as $childAlbum) - @include(Theme::viewName('partials.gallery_child_album')); + @include(Theme::viewName('partials.gallery_child_album')) @endforeach
diff --git a/resources/views/themes/base/gallery/user_profile.blade.php b/resources/views/themes/base/gallery/user_profile.blade.php index df55124..86133e1 100644 --- a/resources/views/themes/base/gallery/user_profile.blade.php +++ b/resources/views/themes/base/gallery/user_profile.blade.php @@ -30,24 +30,8 @@

@lang('gallery.user_profile.albums', ['user_name' => $user->name])

- @foreach ($albums as $album) -
-
- - - -
-
+ @foreach ($albums as $childAlbum) + @include(Theme::viewName('partials.gallery_child_album'), ['show_text' => true]) @endforeach
@endif diff --git a/resources/views/themes/base/partials/gallery_child_album.blade.php b/resources/views/themes/base/partials/gallery_child_album.blade.php index 5e1354f..9cbea8a 100644 --- a/resources/views/themes/base/partials/gallery_child_album.blade.php +++ b/resources/views/themes/base/partials/gallery_child_album.blade.php @@ -6,17 +6,27 @@