Skip to content

Commit

Permalink
fix: move modpack list link to the top of the nav
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyker committed Oct 17, 2023
1 parent 4a3fda4 commit d237c62
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions resources/views/layouts/master.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,15 @@
<li>
<a href="#"><i class="fa fa-folder fa-fw"></i> Modpacks<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">

@foreach ($allModpacks as $modpack)
<li><a href="{{ URL::to('modpack/list') }}">Modpack List</a></li>
<li><a href="{{ URL::to('modpack/create') }}">Add Modpack</a></li>
@foreach ($allModpacks as $modpack)
@if ($modpack->icon)
<li><a href="{{ URL::to('modpack/view/'.$modpack->id) }}"><img src="{{ URL::asset('resources/' . $modpack->slug . '/icon.png') }}" style="width: 16px; height: 16px;"> {{ $modpack->name }}{{ $modpack->hidden ? " (Hidden)" : "" }}</a></li>
@else
<li><a href="{{ URL::to('modpack/view/'.$modpack->id) }}"><img src="{{ URL::asset('resources/default/icon.png') }}" style="width: 16px; height: 16px;"> {{ $modpack->name }}{{ $modpack->hidden ? " (Hidden)" : "" }}</a></li>
@endif
@endforeach
<li><a href="{{ URL::to('modpack/list') }}">Modpack List</a></li>
<li><a href="{{ URL::to('modpack/create') }}">Add Modpack</a></li>
</ul>
<!-- /.nav-second-level -->
</li>
Expand Down

0 comments on commit d237c62

Please sign in to comment.