-
@@ -129,7 +129,7 @@
@foreach ($this->downloaders as $downloader)
-
@@ -162,7 +162,7 @@
@foreach ($this->uploaded as $upload)
-
@@ -196,7 +196,7 @@
@foreach ($this->downloaded as $download)
-
@@ -230,7 +230,7 @@
@foreach ($this->seeders as $seeder)
-
@@ -261,7 +261,7 @@
@foreach ($this->seedtimes as $seedtime)
-
@@ -295,7 +295,7 @@
@foreach ($this->served as $serve)
-
@@ -328,7 +328,7 @@
@foreach ($this->commenters as $commenter)
-
@@ -361,7 +361,7 @@
@foreach ($this->posters as $poster)
-
@@ -392,7 +392,7 @@
@foreach ($this->thankers as $thanker)
-
@@ -425,7 +425,7 @@
@foreach ($this->personals as $personal)
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
-
@@ -162,7 +162,7 @@
@foreach ($this->uploaded as $upload)
-
@@ -196,7 +196,7 @@
@foreach ($this->downloaded as $download)
-
@@ -230,7 +230,7 @@
@foreach ($this->seeders as $seeder)
-
@@ -261,7 +261,7 @@
@foreach ($this->seedtimes as $seedtime)
-
@@ -295,7 +295,7 @@
@foreach ($this->served as $serve)
-
@@ -328,7 +328,7 @@
@foreach ($this->commenters as $commenter)
-
@@ -361,7 +361,7 @@
@foreach ($this->posters as $poster)
-
@@ -392,7 +392,7 @@
@foreach ($this->thankers as $thanker)
-
@@ -425,7 +425,7 @@
@foreach ($this->personals as $personal)
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
-
@@ -196,7 +196,7 @@
@foreach ($this->downloaded as $download)
-
@@ -230,7 +230,7 @@
@foreach ($this->seeders as $seeder)
-
@@ -261,7 +261,7 @@
@foreach ($this->seedtimes as $seedtime)
-
@@ -295,7 +295,7 @@
@foreach ($this->served as $serve)
-
@@ -328,7 +328,7 @@
@foreach ($this->commenters as $commenter)
-
@@ -361,7 +361,7 @@
@foreach ($this->posters as $poster)
-
@@ -392,7 +392,7 @@
@foreach ($this->thankers as $thanker)
-
@@ -425,7 +425,7 @@
@foreach ($this->personals as $personal)
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
-
@@ -230,7 +230,7 @@
@foreach ($this->seeders as $seeder)
-
@@ -261,7 +261,7 @@
@foreach ($this->seedtimes as $seedtime)
-
@@ -295,7 +295,7 @@
@foreach ($this->served as $serve)
-
@@ -328,7 +328,7 @@
@foreach ($this->commenters as $commenter)
-
@@ -361,7 +361,7 @@
@foreach ($this->posters as $poster)
-
@@ -392,7 +392,7 @@
@foreach ($this->thankers as $thanker)
-
@@ -425,7 +425,7 @@
@foreach ($this->personals as $personal)
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
-
@@ -261,7 +261,7 @@
@foreach ($this->seedtimes as $seedtime)
-
@@ -295,7 +295,7 @@
@foreach ($this->served as $serve)
-
@@ -328,7 +328,7 @@
@foreach ($this->commenters as $commenter)
-
@@ -361,7 +361,7 @@
@foreach ($this->posters as $poster)
-
@@ -392,7 +392,7 @@
@foreach ($this->thankers as $thanker)
-
@@ -425,7 +425,7 @@
@foreach ($this->personals as $personal)
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
-
@@ -295,7 +295,7 @@
@foreach ($this->served as $serve)
-
@@ -328,7 +328,7 @@
@foreach ($this->commenters as $commenter)
-
@@ -361,7 +361,7 @@
@foreach ($this->posters as $poster)
-
@@ -392,7 +392,7 @@
@foreach ($this->thankers as $thanker)
-
@@ -425,7 +425,7 @@
@foreach ($this->personals as $personal)
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
-
@@ -328,7 +328,7 @@
@foreach ($this->commenters as $commenter)
-
@@ -361,7 +361,7 @@
@foreach ($this->posters as $poster)
-
@@ -392,7 +392,7 @@
@foreach ($this->thankers as $thanker)
-
@@ -425,7 +425,7 @@
@foreach ($this->personals as $personal)
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
-
@@ -361,7 +361,7 @@
@foreach ($this->posters as $poster)
-
@@ -392,7 +392,7 @@
@foreach ($this->thankers as $thanker)
-
@@ -425,7 +425,7 @@
@foreach ($this->personals as $personal)
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
-
@@ -392,7 +392,7 @@
@foreach ($this->thankers as $thanker)
-
@@ -425,7 +425,7 @@
@foreach ($this->personals as $personal)
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
-
@@ -425,7 +425,7 @@
@foreach ($this->personals as $personal)
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
-
diff --git a/resources/views/livewire/torrent-download-search.blade.php b/resources/views/livewire/torrent-download-search.blade.php
index c19f6643e..3edf21dd3 100644
--- a/resources/views/livewire/torrent-download-search.blade.php
+++ b/resources/views/livewire/torrent-download-search.blade.php
@@ -168,7 +168,7 @@
@foreach ($torrentDownloads as $torrentDownload)
-
@@ -232,7 +232,7 @@
{{ $torrentDownload->id }}
-
diff --git a/resources/views/livewire/torrent-request-search.blade.php b/resources/views/livewire/torrent-request-search.blade.php
index a4d961535..361c35c2d 100644
--- a/resources/views/livewire/torrent-request-search.blade.php
+++ b/resources/views/livewire/torrent-request-search.blade.php
@@ -72,7 +72,7 @@
{{ $torrentRequest->type->name }}
{{ $torrentRequest->resolution->name ?? 'Unknown' }}
-
diff --git a/resources/views/livewire/torrent-trump-search.blade.php b/resources/views/livewire/torrent-trump-search.blade.php
index 92cc9c2eb..73fdd0ee3 100644
--- a/resources/views/livewire/torrent-trump-search.blade.php
+++ b/resources/views/livewire/torrent-trump-search.blade.php
@@ -91,7 +91,7 @@
{{ $torrentTrump->id }}
-
+
@if ($torrentTrump->torrent->trashed())
diff --git a/resources/views/livewire/unregistered-info-hash-search.blade.php b/resources/views/livewire/unregistered-info-hash-search.blade.php
index 37b0085c9..f0500fcc3 100644
--- a/resources/views/livewire/unregistered-info-hash-search.blade.php
+++ b/resources/views/livewire/unregistered-info-hash-search.blade.php
@@ -72,7 +72,7 @@
@foreach ($unregisteredInfoHashes as $unregisteredInfoHash)
-
diff --git a/resources/views/livewire/user-notes.blade.php b/resources/views/livewire/user-notes.blade.php
index f66fd2188..283010814 100644
--- a/resources/views/livewire/user-notes.blade.php
+++ b/resources/views/livewire/user-notes.blade.php
@@ -57,7 +57,7 @@
@forelse ($notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
diff --git a/resources/views/livewire/user-search.blade.php b/resources/views/livewire/user-search.blade.php
index d6ea8b357..871771e09 100644
--- a/resources/views/livewire/user-search.blade.php
+++ b/resources/views/livewire/user-search.blade.php
@@ -182,7 +182,7 @@
/>
-
+
{{ $user->email }}
diff --git a/resources/views/livewire/user-warnings.blade.php b/resources/views/livewire/user-warnings.blade.php
index ea8b36823..e0bef2818 100644
--- a/resources/views/livewire/user-warnings.blade.php
+++ b/resources/views/livewire/user-warnings.blade.php
@@ -129,7 +129,7 @@
@forelse ($warnings as $warning)
-
+
@if ($warningTab !== 'manual')
diff --git a/resources/views/livewire/warning-log-search.blade.php b/resources/views/livewire/warning-log-search.blade.php
index 5fb8b2667..c05bfd274 100644
--- a/resources/views/livewire/warning-log-search.blade.php
+++ b/resources/views/livewire/warning-log-search.blade.php
@@ -118,10 +118,10 @@
@forelse ($warnings as $warning)
-
+
-
+
@isset($warning->torrent)
diff --git a/resources/views/livewire/watchlist-search.blade.php b/resources/views/livewire/watchlist-search.blade.php
index 5b6973746..c632e8861 100644
--- a/resources/views/livewire/watchlist-search.blade.php
+++ b/resources/views/livewire/watchlist-search.blade.php
@@ -56,10 +56,10 @@
@forelse ($watchedUsers as $watching)
-
+
-
+
{{ $watching->message }}
diff --git a/resources/views/partials/achievement_modal.blade.php b/resources/views/partials/achievement-modal.blade.php
similarity index 100%
rename from resources/views/partials/achievement_modal.blade.php
rename to resources/views/partials/achievement-modal.blade.php
diff --git a/resources/views/partials/top_nav.blade.php b/resources/views/partials/top-nav.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/partials/top_nav.blade.php
rename to resources/views/partials/top-nav.blade.php
diff --git a/resources/views/playlist/show.blade.php b/resources/views/playlist/show.blade.php
index 33c960146..cde37a224 100755
--- a/resources/views/playlist/show.blade.php
+++ b/resources/views/playlist/show.blade.php
@@ -263,7 +263,7 @@
/>
@bbcode($playlist->description)
@@ -340,7 +340,7 @@
-
+
{{ $playlistSuggestion->message }}
diff --git a/resources/views/requests/show.blade.php b/resources/views/requests/show.blade.php
index 46159e02c..d1fa2874d 100644
--- a/resources/views/requests/show.blade.php
+++ b/resources/views/requests/show.blade.php
@@ -21,19 +21,19 @@
@if ($user->can_request ?? $user->group->can_request)
@switch(true)
@case($torrentRequest->category->movie_meta)
- @include('torrent.partials.movie_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
+ @include('torrent.partials.movie-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_movie_id])
@break
@case($torrentRequest->category->tv_meta)
- @include('torrent.partials.tv_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
+ @include('torrent.partials.tv-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'tmdb' => $torrentRequest->tmdb_tv_id])
@break
@case($torrentRequest->category->game_meta)
- @include('torrent.partials.game_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
+ @include('torrent.partials.game-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category, 'igdb' => $torrentRequest->igdb])
@break
@default
- @include('torrent.partials.no_meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
+ @include('torrent.partials.no-meta', ['torrent' => $torrentRequest, 'category' => $torrentRequest->category])
@break
@endswitch
@@ -93,7 +93,7 @@
-
+
{{ __('request.claimed') }} by
-
@@ -175,7 +175,7 @@
{{ __('request.filled') }} by
-
@@ -273,7 +273,7 @@
@foreach ($torrentRequest->bounties as $bounty)
iteration > 10) x-show="isToggledOn" x-cloak @endif>
-
+
{{ $bounty->seedbonus }}
diff --git a/resources/views/stats/users/bankers.blade.php b/resources/views/stats/users/bankers.blade.php
index 1f16a0e6d..1918f0cff 100644
--- a/resources/views/stats/users/bankers.blade.php
+++ b/resources/views/stats/users/bankers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/downloaded.blade.php b/resources/views/stats/users/downloaded.blade.php
index 968ef283c..85c5b7e9b 100644
--- a/resources/views/stats/users/downloaded.blade.php
+++ b/resources/views/stats/users/downloaded.blade.php
@@ -40,7 +40,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/leechers.blade.php b/resources/views/stats/users/leechers.blade.php
index 853298fa4..2c1c386ca 100644
--- a/resources/views/stats/users/leechers.blade.php
+++ b/resources/views/stats/users/leechers.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seeders.blade.php b/resources/views/stats/users/seeders.blade.php
index d0eed0dc5..e6d3208f6 100644
--- a/resources/views/stats/users/seeders.blade.php
+++ b/resources/views/stats/users/seeders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedsize.blade.php b/resources/views/stats/users/seedsize.blade.php
index 598f0f1be..46a249663 100644
--- a/resources/views/stats/users/seedsize.blade.php
+++ b/resources/views/stats/users/seedsize.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/seedtime.blade.php b/resources/views/stats/users/seedtime.blade.php
index 727c94166..c51512d9a 100644
--- a/resources/views/stats/users/seedtime.blade.php
+++ b/resources/views/stats/users/seedtime.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/upload-snatches.blade.php b/resources/views/stats/users/upload-snatches.blade.php
index dbe48be53..ddfdc5c3e 100644
--- a/resources/views/stats/users/upload-snatches.blade.php
+++ b/resources/views/stats/users/upload-snatches.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaded.blade.php b/resources/views/stats/users/uploaded.blade.php
index d845b814f..dcb27c9ed 100644
--- a/resources/views/stats/users/uploaded.blade.php
+++ b/resources/views/stats/users/uploaded.blade.php
@@ -42,7 +42,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/users/uploaders.blade.php b/resources/views/stats/users/uploaders.blade.php
index 798099e3b..e464f0f45 100644
--- a/resources/views/stats/users/uploaders.blade.php
+++ b/resources/views/stats/users/uploaders.blade.php
@@ -38,7 +38,7 @@
{{ $loop->iteration }}
-
diff --git a/resources/views/stats/yearly_overviews/index.blade.php b/resources/views/stats/yearly-overviews/index.blade.php
similarity index 100%
rename from resources/views/stats/yearly_overviews/index.blade.php
rename to resources/views/stats/yearly-overviews/index.blade.php
diff --git a/resources/views/stats/yearly_overviews/show.blade.php b/resources/views/stats/yearly-overviews/show.blade.php
similarity index 96%
rename from resources/views/stats/yearly_overviews/show.blade.php
rename to resources/views/stats/yearly-overviews/show.blade.php
index a2e2bc046..87fc02aa8 100644
--- a/resources/views/stats/yearly_overviews/show.blade.php
+++ b/resources/views/stats/yearly-overviews/show.blade.php
@@ -134,7 +134,7 @@
@foreach ($uploaders as $uploader)
-
+
{{ $uploader->value }} {{ __('user.uploads') }}
@@ -154,7 +154,7 @@
@foreach ($requesters as $requester)
-
+
{{ $requester->value }} {{ __('request.requests') }}
@@ -174,7 +174,7 @@
@foreach ($fillers as $filler)
-
+
{{ $filler->value }} {{ __('notification.request-fills') }}
@@ -194,7 +194,7 @@
@foreach ($commenters as $commenter)
-
+
{{ $commenter->value }} {{ __('user.comments') }}
@@ -214,7 +214,7 @@
@foreach ($posters as $poster)
-
+
{{ $poster->value }} {{ __('common.posts') }}
@@ -234,7 +234,7 @@
@foreach ($thankers as $thanker)
-
+
{{ $thanker->value }} {{ __('torrent.thanks') }}
@@ -285,7 +285,7 @@
@foreach ($group->users as $user)
-
-
+
@endforeach
diff --git a/resources/views/ticket/show.blade.php b/resources/views/ticket/show.blade.php
index c0e19b4b6..6f4bbc8ce 100644
--- a/resources/views/ticket/show.blade.php
+++ b/resources/views/ticket/show.blade.php
@@ -83,7 +83,7 @@
@forelse ($ticket->notes as $note)
-
+
{{-- format-ignore-start --}}@linkify($note->message) {{-- format-ignore-end --}}
@@ -147,7 +147,7 @@
{{ __('ticket.opened-by') }}
-
+
diff --git a/resources/views/torrent/download_check.blade.php b/resources/views/torrent/download-check.blade.php
similarity index 100%
rename from resources/views/torrent/download_check.blade.php
rename to resources/views/torrent/download-check.blade.php
diff --git a/resources/views/torrent/external-tracker.blade.php b/resources/views/torrent/external-tracker.blade.php
index f8a6996d8..e3f4dfa28 100644
--- a/resources/views/torrent/external-tracker.blade.php
+++ b/resources/views/torrent/external-tracker.blade.php
@@ -91,9 +91,9 @@
@if (null !== ($user = \App\Models\User::find($peer['user_id'])))
@if ($torrent === null)
-
+
@else
- user"
:anon="
$history->user->privacy?->hidden
diff --git a/resources/views/torrent/partials/audits.blade.php b/resources/views/torrent/partials/audits.blade.php
index 6b6f8756c..e9572c4d9 100644
--- a/resources/views/torrent/partials/audits.blade.php
+++ b/resources/views/torrent/partials/audits.blade.php
@@ -29,7 +29,7 @@
{{-- format-ignore-end --}}
-
+
{{ $audit->action }}
diff --git a/resources/views/torrent/partials/downloads.blade.php b/resources/views/torrent/partials/downloads.blade.php
index 7f52a0400..75c6bdf72 100644
--- a/resources/views/torrent/partials/downloads.blade.php
+++ b/resources/views/torrent/partials/downloads.blade.php
@@ -26,7 +26,7 @@
@foreach (App\Models\TorrentDownload::with(['user:id,username,group_id' => ['group:id,name,color,icon,effect']])->where('torrent_id', '=', $torrent->id)->latest()->get() as $download)
-
+
-
+
diff --git a/resources/views/torrent/partials/movie_meta.blade.php b/resources/views/torrent/partials/movie-meta.blade.php
old mode 100755
new mode 100644
similarity index 100%
rename from resources/views/torrent/partials/movie_meta.blade.php
rename to resources/views/torrent/partials/movie-meta.blade.php
diff --git a/resources/views/torrent/partials/no_meta.blade.php b/resources/views/torrent/partials/no-meta.blade.php
similarity index 100%
rename from resources/views/torrent/partials/no_meta.blade.php
rename to resources/views/torrent/partials/no-meta.blade.php
diff --git a/resources/views/torrent/partials/reports.blade.php b/resources/views/torrent/partials/reports.blade.php
index 75915ee6c..d9ceefc4d 100644
--- a/resources/views/torrent/partials/reports.blade.php
+++ b/resources/views/torrent/partials/reports.blade.php
@@ -39,10 +39,10 @@
-
+
-
+
@if ($report->staff_id !== null)
-
+
@else
Unassigned
@endif
diff --git a/resources/views/torrent/partials/subtitles.blade.php b/resources/views/torrent/partials/subtitles.blade.php
index 1e986b0db..d45694a20 100644
--- a/resources/views/torrent/partials/subtitles.blade.php
+++ b/resources/views/torrent/partials/subtitles.blade.php
@@ -46,7 +46,7 @@
-
+
-
+
{{ $following->follow->created_at }}
diff --git a/resources/views/user/general_setting/edit.blade.php b/resources/views/user/general-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/general_setting/edit.blade.php
rename to resources/views/user/general-setting/edit.blade.php
diff --git a/resources/views/user/gift/index.blade.php b/resources/views/user/gift/index.blade.php
index 908644b73..4c23870c4 100644
--- a/resources/views/user/gift/index.blade.php
+++ b/resources/views/user/gift/index.blade.php
@@ -59,14 +59,14 @@
@if ($gift->sender === null)
Deleted user
@else
-
+
@endif
@if ($gift->recipient === null)
Deleted user
@else
-
+
@endif
{{ $gift->bon }}
diff --git a/resources/views/user/invite-tree/index.blade.php b/resources/views/user/invite-tree/index.blade.php
index cd2788789..157b95fc7 100644
--- a/resources/views/user/invite-tree/index.blade.php
+++ b/resources/views/user/invite-tree/index.blade.php
@@ -53,7 +53,7 @@
@forelse ($invites as $invite)
-
+
@if ($user->warnings_count > 1)
@endif
-
+
@if (auth()->user()->isAllowed($invite->receiver, 'profile', 'show_profile_torrent_ratio'))
@@ -178,7 +178,7 @@
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
@@ -196,7 +196,7 @@
@foreach ($inviters as $i => $inviter)
-
+
@if ($user->warnings_exists)
@endif
-
+
@if (auth()->user()->group->is_modo)
diff --git a/resources/views/user/invite/index.blade.php b/resources/views/user/invite/index.blade.php
index 03fdc7f94..3f61adf24 100644
--- a/resources/views/user/invite/index.blade.php
+++ b/resources/views/user/invite/index.blade.php
@@ -59,7 +59,7 @@
@forelse ($invites as $invite)
-
+
{{ $invite->email }}
@if (auth()->user()->group->is_modo)
@@ -85,7 +85,7 @@
@if ($invite->accepted_by !== null && $invite->accepted_by !== 1)
-
+
@else
N/A
@endif
diff --git a/resources/views/user/notification_setting/edit.blade.php b/resources/views/user/notification-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/notification_setting/edit.blade.php
rename to resources/views/user/notification-setting/edit.blade.php
diff --git a/resources/views/user/post-tip/index.blade.php b/resources/views/user/post-tip/index.blade.php
index e4c46af73..78292b3ce 100644
--- a/resources/views/user/post-tip/index.blade.php
+++ b/resources/views/user/post-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->post === null)
Post Deleted
@else
-
+
@endif
{{ $tip->bon }}
diff --git a/resources/views/user/privacy_setting/edit.blade.php b/resources/views/user/privacy-setting/edit.blade.php
similarity index 100%
rename from resources/views/user/privacy_setting/edit.blade.php
rename to resources/views/user/privacy-setting/edit.blade.php
diff --git a/resources/views/user/profile/partials/bans.blade.php b/resources/views/user/profile/partials/bans.blade.php
index e8c4bc2ba..efc9a24c5 100644
--- a/resources/views/user/profile/partials/bans.blade.php
+++ b/resources/views/user/profile/partials/bans.blade.php
@@ -122,10 +122,10 @@
@forelse ($bans as $ban)
-
+
-
+
{{ $ban->ban_reason }}
{{ $ban->unban_reason }}
diff --git a/resources/views/user/profile/show.blade.php b/resources/views/user/profile/show.blade.php
index da61e44b4..cf6d7a13c 100644
--- a/resources/views/user/profile/show.blade.php
+++ b/resources/views/user/profile/show.blade.php
@@ -115,7 +115,7 @@
-
+
@if ($user->isOnline())
@endif
-
+
-
+
{{ $watch->message }}
@@ -1013,7 +1013,7 @@
{{ __('user.invited-by') }}
@if ($invitedBy)
-
+
@else
{{ __('user.open-registration') }}
@endif
diff --git a/resources/views/user/torrent-tip/index.blade.php b/resources/views/user/torrent-tip/index.blade.php
index 97182ba25..658b1c8aa 100644
--- a/resources/views/user/torrent-tip/index.blade.php
+++ b/resources/views/user/torrent-tip/index.blade.php
@@ -47,14 +47,14 @@
@if ($tip->sender === null)
Deleted user
@else
-
+
@endif
@if ($tip->torrent === null)
Torrent Deleted
@else
-
diff --git a/resources/views/user/two_factor_auth/edit.blade.php b/resources/views/user/two-factor-auth/edit.blade.php
similarity index 100%
rename from resources/views/user/two_factor_auth/edit.blade.php
rename to resources/views/user/two-factor-auth/edit.blade.php
diff --git a/tests/Feature/ArchTest.php b/tests/Feature/ArchTest.php
new file mode 100644
index 000000000..a3dcd8de7
--- /dev/null
+++ b/tests/Feature/ArchTest.php
@@ -0,0 +1,26 @@
+
+ * @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
+ */
+
+use Illuminate\Support\Facades\File;
+
+test('views must be kebab case', function (string $viewPath): void {
+ // Partials are still allowed to be prefixed with an underscore
+ expect($viewPath)->toMatch('/^\/views\/(?:[0-9a-zA-Z-]|\/_?)+\.blade\.php$/');
+})
+ ->with(array_map(
+ fn ($path) => mb_substr($path, mb_strlen(resource_path())),
+ glob(resource_path('views/**/*.blade.php')),
+ ));
diff --git a/tests/Feature/Http/Controllers/ForumControllerTest.php b/tests/Feature/Http/Controllers/ForumControllerTest.php
index f18287e2d..f29ed5a20 100644
--- a/tests/Feature/Http/Controllers/ForumControllerTest.php
+++ b/tests/Feature/Http/Controllers/ForumControllerTest.php
@@ -50,5 +50,5 @@ test('show returns an ok response', function (): void {
]);
$response = $this->actingAs($user)->get(route('forums.show', ['id' => $forum->id]));
- $response->assertViewIs('forum.forum_topic.index');
+ $response->assertViewIs('forum.forum-topic.index');
});
diff --git a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
index 96bd466b3..a1fa6bcdf 100644
--- a/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/BonExchangeControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.create'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.create');
+ $response->assertViewIs('Staff.bon-exchange.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.edit', [$bonExchange]));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.edit');
+ $response->assertViewIs('Staff.bon-exchange.edit');
$response->assertViewHas('bonExchange', $bonExchange);
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.bon_exchanges.index'));
$response->assertOk();
- $response->assertViewIs('Staff.bon_exchange.index');
+ $response->assertViewIs('Staff.bon-exchange.index');
$response->assertViewHas('bonExchanges', $bonExchanges);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
index 74fc11c03..60279aa9a 100644
--- a/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/CheatedTorrentControllerTest.php
@@ -43,7 +43,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.cheated_torrents.index'));
$response->assertOk();
- $response->assertViewIs('Staff.cheated_torrent.index');
+ $response->assertViewIs('Staff.cheated-torrent.index');
$response->assertViewHas('torrents', $torrents);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
index 9b2a48384..4763aa019 100644
--- a/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MassPrivateMessageControllerTest.php
@@ -44,7 +44,7 @@ test('staff can view mass private message creation page', function (): void {
->get(route('staff.mass_private_message.create'));
$response->assertOk()
- ->assertViewIs('Staff.mass_private_message.create')
+ ->assertViewIs('Staff.mass-private-message.create')
->assertViewHas('groups');
});
diff --git a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
index 9e73f83dd..237a550fd 100644
--- a/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
+++ b/tests/Feature/Http/Controllers/Staff/MediaLanguageControllerTest.php
@@ -28,7 +28,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.create'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.create');
+ $response->assertViewIs('Staff.media-language.create');
// TODO: perform additional assertions
});
@@ -56,7 +56,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.edit', [$mediaLanguage]));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.edit');
+ $response->assertViewIs('Staff.media-language.edit');
$response->assertViewHas('media_language');
// TODO: perform additional assertions
@@ -71,7 +71,7 @@ test('index returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('staff.media_languages.index'));
$response->assertOk();
- $response->assertViewIs('Staff.media_language.index');
+ $response->assertViewIs('Staff.media-language.index');
$response->assertViewHas('media_languages');
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TopicControllerTest.php b/tests/Feature/Http/Controllers/TopicControllerTest.php
index 93bed79c9..6ac215186 100644
--- a/tests/Feature/Http/Controllers/TopicControllerTest.php
+++ b/tests/Feature/Http/Controllers/TopicControllerTest.php
@@ -44,7 +44,7 @@ test('create returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('topics.create', ['id' => $topic->id]));
$response->assertOk();
- $response->assertViewIs('forum.forum_topic.create');
+ $response->assertViewIs('forum.forum-topic.create');
$response->assertViewHas('forum', $forum);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
index 83f864b2e..9dee36c60 100644
--- a/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
+++ b/tests/Feature/Http/Controllers/TorrentDownloadControllerTest.php
@@ -28,7 +28,7 @@ test('show returns an ok response', function (): void {
$response = $this->actingAs($user)->get(route('download_check', ['id' => $torrentDownload->id]));
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
$response->assertViewHas('torrent', $torrent);
$response->assertViewHas('user', $user);
diff --git a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
index b0b5506dc..112d90bb6 100644
--- a/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/GeneralSettingControllerTest.php
@@ -25,7 +25,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.general_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.general_setting.edit');
+ $response->assertViewIs('user.general-setting.edit');
$response->assertViewHas('user', $user);
// TODO: perform additional assertions
diff --git a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
index ca4860135..b3e59aae5 100644
--- a/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/NotificationSettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.notification_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.notification_setting.edit');
+ $response->assertViewIs('user.notification-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
index f59fbb97e..9aa184c9e 100644
--- a/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
+++ b/tests/Feature/Http/Controllers/User/PrivacySettingControllerTest.php
@@ -27,7 +27,7 @@ test('edit returns an ok response', function (): void {
$response = $this->actingAs($authUser)->get(route('users.privacy_settings.edit', [$user]));
$response->assertOk();
- $response->assertViewIs('user.privacy_setting.edit');
+ $response->assertViewIs('user.privacy-setting.edit');
$response->assertViewHas('user', $user);
$response->assertViewHas('groups', $groups);
diff --git a/tests/Feature/Notifications/NewUploadNotificationTest.php b/tests/Feature/Notifications/NewUploadNotificationTest.php
index ed1d17c1e..8286a8894 100644
--- a/tests/Feature/Notifications/NewUploadNotificationTest.php
+++ b/tests/Feature/Notifications/NewUploadNotificationTest.php
@@ -106,7 +106,7 @@ test('upload a torrent creates a notification for followers', function (): void
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertSentTo(
[$follower],
@@ -190,7 +190,7 @@ test('upload a torrent does not create a notification for followers when all not
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -270,7 +270,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@@ -351,7 +351,7 @@ test('upload a torrent does not create a notification for followers when followi
$response = $this->followRedirects($response);
$response->assertOk();
- $response->assertViewIs('torrent.download_check');
+ $response->assertViewIs('torrent.download-check');
Notification::assertCount(0);
});
@bbcode($playlist->description) @@ -340,7 +340,7 @@