Skip to content

Commit

Permalink
Move LANs attended to profile header
Browse files Browse the repository at this point in the history
  • Loading branch information
ilumos committed Sep 18, 2024
1 parent ecc55f9 commit 61e291d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions resources/views/pages/users/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@
<h1>
{{ $user->username }}
</h1>
@if($user->lans)
@foreach($user->lans()->orderBy('start', 'desc')->get() as $lan)
<a href="{{ route('lans.show', $lan->id) }}"><span class="badge text-bg-primary">{{ $lan->name }}</span></a>
@endforeach
@endif
</div>
<hr>
<h2>@lang('title.linked-accounts')</h2>
<div class="container">
<div class="row">
<div class="col-lg-4 border border-secondary rounded py-2 me-2">
Expand All @@ -26,14 +30,6 @@

@section('content')
<hr>
@if($user->lans)
<h2>@lang('title.lans-attended')</h2>
@foreach($user->lans()->orderBy('start', 'desc')->get() as $lan)
<a href="{{ route('lans.show', $lan->id) }}">
<span class="badge text-bg-primary">{{ $lan->name }}</span>
</a>
@endforeach
@endif
{{-- Show game info if the user is attending the current or most recent LAN (or there isn't a LAN) --}}
@if( !$currentLan || $lansAttended->contains('id',$currentLan->id))
@if($user->steamMetadata->exists && $user->steamMetadata->apps_visible == 1)
Expand Down

0 comments on commit 61e291d

Please sign in to comment.