From 861cefb2dbb95d487535f70ddf14335b664d9a3b Mon Sep 17 00:00:00 2001 From: Deon George Date: Fri, 4 Oct 2024 15:39:38 +1000 Subject: [PATCH] Fix info link for videos, limit showing duplicates to 10 --- app/Traits/Multimedia.php | 2 +- resources/views/components/{ => photo}/info.blade.php | 0 resources/views/components/video/info.blade.php | 1 + resources/views/photo/view.blade.php | 2 +- resources/views/photo/widgets/thumbnail.blade.php | 2 +- resources/views/video/view.blade.php | 2 +- resources/views/video/widgets/thumbnail.blade.php | 2 +- 7 files changed, 6 insertions(+), 5 deletions(-) rename resources/views/components/{ => photo}/info.blade.php (100%) create mode 100644 resources/views/components/video/info.blade.php diff --git a/app/Traits/Multimedia.php b/app/Traits/Multimedia.php index 9aef317..ac27afd 100644 --- a/app/Traits/Multimedia.php +++ b/app/Traits/Multimedia.php @@ -18,7 +18,7 @@ trait Multimedia { use Type; - protected const list_duplicates = 20; + protected const list_duplicates = 10; protected const list_deletes = 50; private function controller(string $type): string diff --git a/resources/views/components/info.blade.php b/resources/views/components/photo/info.blade.php similarity index 100% rename from resources/views/components/info.blade.php rename to resources/views/components/photo/info.blade.php diff --git a/resources/views/components/video/info.blade.php b/resources/views/components/video/info.blade.php new file mode 100644 index 0000000..dfe32ae --- /dev/null +++ b/resources/views/components/video/info.blade.php @@ -0,0 +1 @@ +{{ $id }} \ No newline at end of file diff --git a/resources/views/photo/view.blade.php b/resources/views/photo/view.blade.php index b50482c..33860c5 100644 --- a/resources/views/photo/view.blade.php +++ b/resources/views/photo/view.blade.php @@ -79,7 +79,7 @@
@foreach($x as $oo) @if(! $loop->first)| @endif - + @endforeach
@endif diff --git a/resources/views/photo/widgets/thumbnail.blade.php b/resources/views/photo/widgets/thumbnail.blade.php index 7031c93..73b5685 100644 --- a/resources/views/photo/widgets/thumbnail.blade.php +++ b/resources/views/photo/widgets/thumbnail.blade.php @@ -26,7 +26,7 @@