From d2fc9908f30c3bec6ca8576dd2b5f31fa75ddba2 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Thu, 27 Dec 2018 22:50:36 -0500 Subject: * Song View: Add links to previous and next songs --- laravel/resources/views/song.blade.php | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'laravel/resources') 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) - $playlist->name ] ) }}'> - Back to "{{$playlist->name}}" playlist - + @if( isset( $back ) ) + $back])}}'>{{$back->title}} @endif + @if( $playlist ?? FALSE) + $playlist->name])}}'> + Back to {{$playlist->name}} + + @else + Go home + @endif + @if( isset( $next ) ) + $next])}}'>{{$next->title}} + @endif +

{{$song['title']}}

{{$song->author}}

@if($song->key) -- cgit 1.4.1