Skip to content

Commit

Permalink
Merge pull request #708 from projectcitybuild/master #patch
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
andyksaw authored Jun 3, 2023
2 parents 2ce8bca + 93f604e commit 82d36cf
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 19 deletions.
2 changes: 1 addition & 1 deletion resources/views/admin/ban-appeal/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</td>
<td>
<a href="{{ route('front.panel.minecraft-players.show', $banAppeal->gamePlayerBan->bannedPlayer)}}">
{{ $banAppeal->gamePlayerBan->bannerPlayer->getBanReadableName() ?? 'No Alias' }}
{{ $banAppeal->gamePlayerBan->bannerPlayer?->getBanReadableName() ?? 'No Alias' }}
</a>
</td>
<td>
Expand Down
10 changes: 5 additions & 5 deletions resources/views/front/components/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
<li>
<h5>Information</h5>
<ul>
<li><a href="https://portal.projectcitybuild.com/books/rules/page/community-rules">Rules & Guidelines</a></li>
<li><a href="https://portal.projectcitybuild.com/books/player-ranks/page/list-of-ranks">Ranks</a></li>
<li><a href="https://portal.projectcitybuild.com/books/list-of-staff/page/active">Staff</a></li>
<li><a href="https://portal.projectcitybuild.com/books/server-voting/page/server-voting">Vote For Us</a></li>
<li><a href="https://portal.projectcitybuild.com/books/map-archive/page/map-archive">Map Archive</a></li>
<li><a href="{{ route('rules') }}">Rules & Guidelines</a></li>
<li><a href="{{ route('ranks') }}">Ranks</a></li>
<li><a href="{{ route('staff') }}">Staff</a></li>
<li><a href="{{ route('vote') }}">Vote For Us</a></li>
<li><a href="{{ route('map-archive') }}">Map Archive</a></li>
</ul>
</li>
<li>
Expand Down
8 changes: 4 additions & 4 deletions resources/views/front/components/sitemap.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<div class="footer-links__category">
<h2>Server</h2>
<ul>
<li><i class="bullet fas fa-cube"></i> <a href="https://forums.projectcitybuild.com/t/pcb-community-rules/22928">Rules & Guidelines</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="https://forums.projectcitybuild.com/t/pcb-ranks/32812">Ranks</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="https://wiki.projectcitybuild.com/wiki/List_of_Staff_Members">Staff</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('rules') }}">Rules & Guidelines</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('ranks') }}">Ranks</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('staff') }}">Staff</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('maps') }}" target="_blank" rel="noopener noreferrer">Real-Time Maps</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('3d-maps') }}" target="_blank" rel="noopener noreferrer">3D Maps</a></li>
</ul>
Expand All @@ -18,7 +18,7 @@
<h2>Community</h2>
<ul>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('wiki') }}">Community Wiki</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="https://forums.projectcitybuild.com/t/vote-for-our-server/18568">Vote For Our Server</a></li>
<li><i class="bullet fas fa-cube"></i> <a href="{{ route('vote') }}">Vote For Our Server</a></li>
</ul>
</div>

Expand Down
6 changes: 3 additions & 3 deletions resources/views/front/pages/ban-appeal/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<div class="messages">
<div class="message message--left">
<div class="message-avatar">
<img src="https://minotar.net/helm/{{ $banAppeal->gamePlayerBan->bannedPlayer->uuid }}/32" width="32"/>
<img src="https://minotar.net/helm/{{ $banAppeal->gamePlayerBan->bannedPlayer?->uuid }}/32" width="32"/>
</div>
<div class="message-comment">
<div class="message-text">
Expand All @@ -73,11 +73,11 @@
@endif
</div>
<div class="message-date">
{{$banAppeal->deciderAccount->username }} &bull; {{ $banAppeal->decided_at }}
{{$banAppeal->deciderAccount?->username }} &bull; {{ $banAppeal->decided_at }}
</div>
</div>
<div class="message-avatar">
<img src="https://minotar.net/helm/{{ $banAppeal->deciderAccount->uuid }}/32" width="32"/>
<img src="https://minotar.net/helm/{{ $banAppeal->deciderAccount?->uuid }}/32" width="32"/>
</div>
</div>
@endif
Expand Down
38 changes: 32 additions & 6 deletions routes/web_redirects.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,35 @@

use Illuminate\Support\Facades\Route;

Route::permanentRedirect('terms', 'https://forums.projectcitybuild.com/t/community-rules/22928')->name('terms');
Route::permanentRedirect('privacy', 'https://forums.projectcitybuild.com/privacy')->name('privacy');
Route::permanentRedirect('wiki', 'https://wiki.projectcitybuild.com')->name('wiki');
Route::permanentRedirect('maps', 'https://maps.pcbmc.co')->name('maps');
Route::permanentRedirect('3d-maps', 'https://3d.pcbmc.co')->name('3d-maps');
Route::permanentRedirect('report', 'https://forums.projectcitybuild.com/w/player-report')->name('report');
Route::permanentRedirect('terms', 'https://forums.projectcitybuild.com/t/community-rules/22928')
->name('terms');

Route::permanentRedirect('privacy', 'https://forums.projectcitybuild.com/privacy')
->name('privacy');

Route::permanentRedirect('wiki', 'https://wiki.projectcitybuild.com')
->name('wiki');

Route::permanentRedirect('maps', 'https://maps.pcbmc.co')
->name('maps');

Route::permanentRedirect('3d-maps', 'https://3d.pcbmc.co')
->name('3d-maps');

Route::permanentRedirect('report', 'https://docs.google.com/forms/d/e/1FAIpQLSerzdjDmc-xM26ZiDqIKN0d1gjjmRomFKg6efdHxXqir6QIMQ/viewform')
->name('report');

Route::permanentRedirect('rules', 'https://portal.projectcitybuild.com/books/rules/page/community-rules')
->name('rules');

Route::permanentRedirect('ranks', 'https://portal.projectcitybuild.com/books/player-ranks/page/list-of-ranks')
->name('ranks');

Route::permanentRedirect('staff', 'https://portal.projectcitybuild.com/books/list-of-staff/page/active')
->name('staff');

Route::permanentRedirect('vote', 'https://portal.projectcitybuild.com/books/server-voting/page/server-voting')
->name('vote');

Route::permanentRedirect('map-archive', 'https://portal.projectcitybuild.com/books/map-archive/page/map-archive')
->name('map-archive');

0 comments on commit 82d36cf

Please sign in to comment.