diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-12-27 22:50:36 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-12-27 22:50:36 -0500 |
| commit | d2fc9908f30c3bec6ca8576dd2b5f31fa75ddba2 (patch) | |
| tree | 7a56796e06fbd4de77504e40ac6793da5e67d466 /laravel/resources/views/song.blade.php | |
| parent | d0bc101ed1178503af58f0c9d8a680a4dc393654 (diff) | |
| download | prosongsa-d2fc9908f30c3bec6ca8576dd2b5f31fa75ddba2.tar.gz | |
* Song View: Add links to previous and next songs
Diffstat (limited to 'laravel/resources/views/song.blade.php')
| -rw-r--r-- | laravel/resources/views/song.blade.php | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/laravel/resources/views/song.blade.php b/laravel/resources/views/song.blade.php index 89abfdd..412e53d 100644 --- a/laravel/resources/views/song.blade.php +++ b/laravel/resources/views/song.blade.php @@ -3,11 +3,20 @@ @section('content') - @if( $playlist) - <a href='{{ route('playlist.show', ['playlist' => $playlist->name ] ) }}'> - Back to "<i>{{$playlist->name}}</i>" playlist - </a> + @if( isset( $back ) ) + <a href='{{route('song.show', ['song' => $back])}}'>{{$back->title}}</a> @endif + @if( $playlist ?? FALSE) + <a href='{{route('playlist.show',['playlist' => $playlist->name])}}'> + Back to {{$playlist->name}} + </a> + @else + <a href='{{route('song.list')}}'>Go home</a> + @endif + @if( isset( $next ) ) + <a href='{{route('song.show', ['song' => $next])}}'>{{$next->title}}</a> + @endif + <h2>{{$song['title']}}</h2> <h3>{{$song->author}}</h3> @if($song->key) |
