diff --git a/app/Http/Controllers/GalleryController.php b/app/Http/Controllers/GalleryController.php index b946ac9e2..7102d5d69 100644 --- a/app/Http/Controllers/GalleryController.php +++ b/app/Http/Controllers/GalleryController.php @@ -99,7 +99,7 @@ public function getGallery($id, Request $request) { return view('galleries.gallery', [ 'gallery' => $gallery, 'submissions' => $query->paginate(20)->appends($request->query()), - 'prompts' => [0 => 'Any Prompt'] + Prompt::whereIn('id', GallerySubmission::where('gallery_id', $gallery->id)->visible(Auth::user() ?? null)->accepted()->whereNotNull('prompt_id')->pluck('prompt_id')->toArray())->orderBy('name')->pluck('name', 'id')->toArray(), + 'prompts' => [0 => 'Any Prompt'] + Prompt::whereIn('id', GallerySubmission::where('gallery_id', $gallery->id)->visible(Auth::user() ?? null)->accepted()->whereNotNull('prompt_id')->select('prompt_id')->distinct()->pluck('prompt_id')->toArray())->orderBy('name')->pluck('name', 'id')->toArray(), 'childSubmissions' => GallerySubmission::whereIn('gallery_id', $gallery->children->pluck('id')->toArray())->where('is_visible', 1)->where('status', 'Accepted'), 'galleryPage' => true, 'sideGallery' => $gallery, diff --git a/resources/views/character/_image_info.blade.php b/resources/views/character/_image_info.blade.php index b2611d39e..843c73c45 100644 --- a/resources/views/character/_image_info.blade.php +++ b/resources/views/character/_image_info.blade.php @@ -51,27 +51,27 @@ {{-- Basic info --}}
-
-
+
+
Species
-
{!! $image->species_id ? $image->species->displayName : 'None' !!}
+
{!! $image->species_id ? $image->species->displayName : 'None' !!}
@if (count($image->subtypes)) -
-
+
+
Subtype{{ count($image->subtypes) > 1 ? 's' : '' }}
-
+
{!! $image->displaySubtypes() !!}
@endif -
-
+
+
Rarity
-
{!! $image->rarity_id ? $image->rarity->displayName : 'None' !!}
+
{!! $image->rarity_id ? $image->rarity->displayName : 'None' !!}
@@ -153,21 +153,21 @@ {{-- Image credits --}}
-
-
+
+
Design
-
+
@foreach ($image->designers as $designer)
{!! $designer->displayLink() !!}
@endforeach
-
-
+
+
Art
-
+
@foreach ($image->artists as $artist)
{!! $artist->displayLink() !!}
@endforeach diff --git a/resources/views/character/_tab_stats.blade.php b/resources/views/character/_tab_stats.blade.php index 686f3dfc4..495da4222 100644 --- a/resources/views/character/_tab_stats.blade.php +++ b/resources/views/character/_tab_stats.blade.php @@ -1,22 +1,22 @@ -
-
+
+
Owner
-
{!! $character->displayOwner !!}
+
{!! $character->displayOwner !!}
@if (!$character->is_myo_slot) -
-
+
+
Category
-
{!! $character->category->displayName !!}
+
{!! $character->category->displayName !!}
@endif -
-
+
+
Created
-
{!! format_date($character->created_at) !!}
+
{!! format_date($character->created_at) !!}

@@ -32,21 +32,21 @@ {{ $character->is_sellable ? 'Can' : 'Cannot' }} be sold @if ($character->sale_value > 0) -
-
+
+
Sale Value
-
+
{{ Config::get('lorekeeper.settings.currency_symbol') }}{{ $character->sale_value }}
@endif @if ($character->transferrable_at && $character->transferrable_at->isFuture()) -
-
+
+
Cooldown
-
Cannot be transferred until {!! format_date($character->transferrable_at) !!}
+
Cannot be transferred until {!! format_date($character->transferrable_at) !!}
@endif @if (Auth::check() && Auth::user()->hasPower('manage_characters')) diff --git a/resources/views/galleries/gallery.blade.php b/resources/views/galleries/gallery.blade.php index 0df231956..fbbc61267 100644 --- a/resources/views/galleries/gallery.blade.php +++ b/resources/views/galleries/gallery.blade.php @@ -26,7 +26,7 @@

@endif

{!! $gallery->description !!}

- @if (!$gallery->submissions->count() && $gallery->children->count() && $childSubmissions->count()) + @if (!$gallery->submissions()->count() && $gallery->children->count() && $childSubmissions->count())

This gallery has no submissions; instead, displayed is a selection of the most recent submissions from its sub-galleries. Please navigate to one of the sub-galleries to view more.

@endif @@ -59,7 +59,7 @@ {!! Form::close() !!}
- @if ($gallery->submissions->count()) + @if ($gallery->submissions()->count()) {!! $submissions->render() !!}
diff --git a/resources/views/user/_profile_content.blade.php b/resources/views/user/_profile_content.blade.php index 9bc2a518c..b1d50dca8 100644 --- a/resources/views/user/_profile_content.blade.php +++ b/resources/views/user/_profile_content.blade.php @@ -28,11 +28,11 @@
-
-
+
+
Alias
-
+
{!! $user->displayAlias !!} @if (count($aliases) > 1 && config('lorekeeper.extensions.aliases_on_userpage')) @@ -46,24 +46,24 @@ @endif
-
-
+
+
Joined
-
{!! format_date($user->created_at, false) !!} ({{ $user->created_at->diffForHumans() }})
+
{!! format_date($user->created_at, false) !!} ({{ $user->created_at->diffForHumans() }})
-
-
+
+
Rank
-
{!! $user->rank->displayName !!} {!! add_help($user->rank->parsed_description) !!}
+
{!! $user->rank->displayName !!} {!! add_help($user->rank->parsed_description) !!}
@if ($user->birthdayDisplay && isset($user->birthday)) -
-
+
+
Birthday
-
{!! $user->birthdayDisplay !!}
+
{!! $user->birthdayDisplay !!}
@endif