Add single track button
This commit is contained in:
		
							parent
							
								
									a74376009a
								
							
						
					
					
						commit
						037f16ea80
					
				| @ -229,3 +229,4 @@ $('.add-album').live 'click', -> | |||||||
|     item['album'] = album.name |     item['album'] = album.name | ||||||
|   _player.addTracks album.tracks |   _player.addTracks album.tracks | ||||||
|   false |   false | ||||||
|  | 
 | ||||||
|  | |||||||
| @ -37,6 +37,30 @@ | |||||||
|     } |     } | ||||||
|     td.song-duration { |     td.song-duration { | ||||||
|       text-align: right; |       text-align: right; | ||||||
|  |       .s-duration { | ||||||
|  |         display: block; | ||||||
|  |         padding: 1px 0; | ||||||
|  |       } | ||||||
|  |       .s-add { | ||||||
|  |         display: none; | ||||||
|  |         font-size: 11px; | ||||||
|  |         line-height: 11px; | ||||||
|  |         color: #fafffa; | ||||||
|  |         background-color: #90cc90; | ||||||
|  |         border: #80bb80 1px solid; | ||||||
|  |         border-radius: 3px; | ||||||
|  |         padding: 0 3px 2px 3px; | ||||||
|  |         float: right; | ||||||
|  |         cursor: pointer; | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |     tr:hover { | ||||||
|  |       .s-duration { | ||||||
|  |         display: none; | ||||||
|  |       } | ||||||
|  |       .s-add { | ||||||
|  |         display: block; | ||||||
|  |       } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| } | } | ||||||
| @ -7,6 +7,7 @@ | |||||||
|   .span7.columns.desc |   .span7.columns.desc | ||||||
|     %h2= @artist[:artist][:name] |     %h2= @artist[:artist][:name] | ||||||
|     = @artist[:artist][:desc] unless @artist[:artist][:desc].nil? |     = @artist[:artist][:desc] unless @artist[:artist][:desc].nil? | ||||||
|  |     - unless @artist[:artist][:urls].nil? | ||||||
|       .service-icons |       .service-icons | ||||||
|         - @artist[:artist][:urls].each do |service| |         - @artist[:artist][:urls].each do |service| | ||||||
|           - if ['wikipedia', 'microblog', 'official_homepage', 'social_network'].include?service.service |           - if ['wikipedia', 'microblog', 'official_homepage', 'social_network'].include?service.service | ||||||
| @ -26,4 +27,6 @@ | |||||||
|         - album[:tracks].each do |track| |         - album[:tracks].each do |track| | ||||||
|           %tr |           %tr | ||||||
|             %td.song-title= track[:name] |             %td.song-title= track[:name] | ||||||
|             %td.song-duration= track[:duration] |             %td.song-duration | ||||||
|  |               .s-duration= track[:duration] | ||||||
|  |               .s-add{ :data_id => track[:id] }= I18n.t 'player.add_one' | ||||||
| @ -46,6 +46,7 @@ en: | |||||||
|    |    | ||||||
|   player: |   player: | ||||||
|     add: "Add to Now Playing" |     add: "Add to Now Playing" | ||||||
|  |     add_one: "add" | ||||||
|     repeat: "Repeat" |     repeat: "Repeat" | ||||||
|     shuffle: "Shuffle" |     shuffle: "Shuffle" | ||||||
|     do_empty: "Empty" |     do_empty: "Empty" | ||||||
| @ -46,6 +46,7 @@ ru: | |||||||
|    |    | ||||||
|   player: |   player: | ||||||
|     add: "Добавить в плей-лист" |     add: "Добавить в плей-лист" | ||||||
|  |     add_one: "добавить" | ||||||
|     repeat: "Повторять" |     repeat: "Повторять" | ||||||
|     shuffle: "Перемешать" |     shuffle: "Перемешать" | ||||||
|     do_empty: "Очистить" |     do_empty: "Очистить" | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user