-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added '+' add functionality to browse tracks/albums/artists
added stage 1 playlist functionality
- Loading branch information
David Norman
committed
Nov 8, 2015
1 parent
43cf5c2
commit 587a42f
Showing
12 changed files
with
78 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
span.bigicon { | ||
padding: 2px; | ||
font-size: 4em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,26 @@ | ||
<p>playlist page</p> | ||
<div ng-init="init()"> | ||
|
||
<p>Player: {{data.player_name}} @ {{data.player_ip}} | ||
|
||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th class="col-xs-1"></th> | ||
<th class="col-xs-1">Number</th> | ||
<th class="col-xs-5">Track</th> | ||
<th class="col-xs-4">Album</th> | ||
<th class="col-xs-2">Artist</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-class="($index==data.playlist_cur_index)?'success':''" ng-repeat="r in data.playlist_loop"> | ||
<td></td> | ||
<td>{{r.tracknum}}</td> | ||
<td><a href="#/local/track/{{r.id}}">{{r.title}}</a></td> | ||
<td><a href="#/local/album/{{r.album_id}}">{{r.album}}</a></td> | ||
<td><a href="#/local/artist/{{r.artist_id}}">{{r.artist}}</a></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
function PlaylistController($scope) { | ||
function PlaylistController($scope, slimClient) { | ||
|
||
$scope.init = function() { | ||
slimClient.player_status(). | ||
success(function(result) { | ||
$scope.data = result; | ||
}); | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters