From ecc2d1ca1a073c434f8c73da71eaf8cba7c4c8a6 Mon Sep 17 00:00:00 2001 From: Refringe Date: Thu, 8 Aug 2024 23:02:48 -0400 Subject: [PATCH] Mod Detail Page Main Card Cleans up the main card on the mod detail page to make the SPT version more in-sync with the rest of the site. Resolves #28 --- database/factories/SptVersionFactory.php | 2 +- resources/views/mod/show.blade.php | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/database/factories/SptVersionFactory.php b/database/factories/SptVersionFactory.php index e25d046..a891069 100644 --- a/database/factories/SptVersionFactory.php +++ b/database/factories/SptVersionFactory.php @@ -13,7 +13,7 @@ class SptVersionFactory extends Factory public function definition(): array { return [ - 'version' => $this->faker->numerify('1.#.#'), + 'version' => $this->faker->numerify('SPT 1.#.#'), 'color_class' => $this->faker->randomElement(['red', 'green', 'emerald', 'lime', 'yellow', 'grey']), 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), diff --git a/resources/views/mod/show.blade.php b/resources/views/mod/show.blade.php index 00ae244..8451457 100644 --- a/resources/views/mod/show.blade.php +++ b/resources/views/mod/show.blade.php @@ -6,7 +6,7 @@ -
+
{{-- Main Mod Details Card --}} @@ -22,15 +22,12 @@
-

+

{{ $mod->name }} {{ $latestVersion->version }}

- - {{ $latestVersion->sptVersion->version }} -

{{ __('Created by') }} @@ -38,8 +35,12 @@ {{ $user->name }}{{ $loop->last ? '' : ',' }} @endforeach

-

{{ $latestVersion->sptVersion->version }} {{ __('Compatible') }}

{{ Number::format($mod->total_downloads) }} {{ __('Downloads') }}

+

+ + {{ $latestVersion->sptVersion->version }} {{ __('Compatible') }} + +