Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
styled browser area
- Loading branch information
Showing
7 changed files
with
79 additions
and
46 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,34 +1,15 @@ | ||
#library | ||
- if params[:artist] | ||
.album_list | ||
.artist.clearfix | ||
%h2= URI.unescape(params[:artist]) | ||
= link_to '« back' | ||
|
||
%ul | ||
- itunes.find_albums_by_artist(params[:artist]).each do |album, tracks| | ||
%li | ||
%h3 | ||
= album | ||
= link_to '+ add', :do => :add_album, :album => album | ||
%ol | ||
- tracks.each do |track| | ||
%li | ||
= track.description | ||
= link_to '+ add', :do => :add, :index => track.library_index | ||
|
||
- else | ||
#artist_list | ||
%h3 Artists | ||
%ol | ||
- itunes.artists.each do |artist| | ||
%li= link_to artist, :artist => artist | ||
/ %ul.artist_list | ||
/ %li | ||
/ %ul.clearfix | ||
/ - itunes.artist_letters.each do |l| | ||
/ %li= link_to_anchor l, l | ||
/ %li | ||
/ %ol | ||
/ - itunes.artists.each do |artist| | ||
/ %li= link_to artist, :artist => artist | ||
#library.clearfix | ||
.headers.clearfix | ||
%h3 Select Artist | ||
%h3 Select Albums / Tracks | ||
#artists | ||
%ol | ||
- itunes.artists.each do |artist| | ||
%li= link_to artist, :artist => artist | ||
#albums | ||
- if params[:artist] | ||
- itunes.find_albums_by_artist(params[:artist]).each do |album, tracks| | ||
%h4= link_to album, :do => :add_album, :album => album | ||
%ol | ||
- tracks.each do |track| | ||
%li= link_to track.title, :do => :add, :index => track.library_index |
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 |
---|---|---|
|
@@ -16,4 +16,5 @@ | |
- i = !i | ||
- else | ||
%tr | ||
%td{:colspan => '3'} Playlist is empty. | ||
%td{:colspan => '3'} | ||
%em Playlist is empty. |
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