about summary refs log tree commit diff
path: root/laravel/resources/views/song.blade.php
diff options
context:
space:
mode:
Diffstat (limited to 'laravel/resources/views/song.blade.php')
-rw-r--r--laravel/resources/views/song.blade.php17
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)