Skip to content

Commit 0495114

Browse files
committed
add link back to profile
1 parent eff0b59 commit 0495114

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,4 +267,5 @@ cncnet-api/database/migrations/2022_05_14_214858_createDummyTestAccounts.php
267267
/cncnet-api/.data/
268268
/caddy
269269
/.backup.env
270-
docker-compose.test.yml
270+
docker-compose.test.yml
271+
cncnet-api/.bash_history

cncnet-api/app/Http/Controllers/AdminController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ public function getLadderPlayer(Request $request, $ladderId = null, $playerId =
767767
if ($playerId === null)
768768
return;
769769

770-
$player = \App\Models\Player::find($playerId);
770+
$player = Player::find($playerId);
771771

772772
if ($player === null || !$mod->isLadderMod($player->ladder))
773773
return;

cncnet-api/resources/views/admin/moderate-player.blade.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
<div class="player-header mt-3 mb-3">
3535
<div class="player-stats">
3636
<h1 class="username">
37-
{{ $player->username }}
37+
<a href="/ladder/{{ $history->short }}/{{ $ladder->abbreviation }}/player/{{ $player->username }}">
38+
{{ $player->username }}
39+
</a>
3840
</h1>
3941
{{ $user->getBan() }}
4042
</div>

0 commit comments

Comments
 (0)