Backend for songs.zachdecook.com
Diffstat (limited to 'laravel/resources/views/song.blade.php')
| -rw-r--r-- | laravel/resources/views/song.blade.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/laravel/resources/views/song.blade.php b/laravel/resources/views/song.blade.php index 412e53d..6c34871 100644 --- a/laravel/resources/views/song.blade.php +++ b/laravel/resources/views/song.blade.php @@ -3,19 +3,28 @@ @section('content') + <link type='text/css' rel='stylesheet' href='/css/song.css'/> + <div class='controlArea'> @if( isset( $back ) ) - <a href='{{route('song.show', ['song' => $back])}}'>{{$back->title}}</a> + <a class='back' href='{{route('song.show', ['song' => $back, 'playlist' => $playlist ?? ''])}}'> + {{$back->name}} + </a> @endif @if( $playlist ?? FALSE) - <a href='{{route('playlist.show',['playlist' => $playlist->name])}}'> + <a class='home' href='{{route('playlist.show',['playlist' => $playlist->name])}}'> Back to {{$playlist->name}} </a> @else - <a href='{{route('song.list')}}'>Go home</a> + <a class='home' href='{{route('song.list')}}'> + Go home + </a> @endif @if( isset( $next ) ) - <a href='{{route('song.show', ['song' => $next])}}'>{{$next->title}}</a> + <a class='next' href='{{route('song.show', ['song' => $next, 'playlist' => $playlist ?? ''])}}'> + {{$next->name}} + </a> @endif + </div> <h2>{{$song['title']}}</h2> <h3>{{$song->author}}</h3> @@ -37,7 +46,6 @@ for ($i=-6; $i < 12; $i++) { if (($transp + 24)%12 == $i) $selected = 'selected'; else $selected = ''; - //$dir = ($i >= 0 ? "up" : "down" ); $dir = "transpose"; echo "<option value='$i' $selected>$dir $i semitones</option>"; } |