Skip to content

Commit

Permalink
fix: show staff calendar for mods
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 committed Sep 28, 2024
1 parent c200baa commit c4731b6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
| Needs to be updated manually for each iteration we do.
|
*/
'version' => '1.0.3',
'version' => '1.0.4',

/*
|--------------------------------------------------------------------------
Expand Down
13 changes: 13 additions & 0 deletions resources/views/layouts/topbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@
<span>{{ $calendar->name }}</span></a>
</li>
@endforeach

@auth
@if(\Auth::user()->isModeratorOrAbove())
@foreach (App\Models\Calendar::where('public', 0)->get() as $calendar)
<li class="nav-item {{ Route::is('events.show') && request()->route('event')->calendar_id == $calendar->id || Route::is('calendar') && request()->route('calendar')->id == $calendar->id ? 'active' : '' }}">
<a class="nav-link" href="{{ route('calendar', $calendar->id) }}">
<i class="fas fa-fw fa-calendar"></i>
<span>{{ $calendar->name }}</span></a>
</li>
@endforeach
@endif
@endauth

@auth
<li class="nav-item">
<a class="nav-link" href="{{ route('logout') }}">
Expand Down

0 comments on commit c4731b6

Please sign in to comment.