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
|
||||
_player.addTracks album.tracks
|
||||
false
|
||||
|
||||
|
|
|
@ -37,6 +37,30 @@
|
|||
}
|
||||
td.song-duration {
|
||||
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,11 +7,12 @@
|
|||
.span7.columns.desc
|
||||
%h2= @artist[:artist][:name]
|
||||
= @artist[:artist][:desc] unless @artist[:artist][:desc].nil?
|
||||
.service-icons
|
||||
- @artist[:artist][:urls].each do |service|
|
||||
- if ['wikipedia', 'microblog', 'official_homepage', 'social_network'].include?service.service
|
||||
%a.foreign-link{ :href => service.url, :target => '_blank' }
|
||||
= image_tag 'services/'+service.service+(service.service == 'official_homepage' ? '.png' : '.ico')
|
||||
- unless @artist[:artist][:urls].nil?
|
||||
.service-icons
|
||||
- @artist[:artist][:urls].each do |service|
|
||||
- if ['wikipedia', 'microblog', 'official_homepage', 'social_network'].include?service.service
|
||||
%a.foreign-link{ :href => service.url, :target => '_blank' }
|
||||
= image_tag 'services/'+service.service+(service.service == 'official_homepage' ? '.png' : '.ico')
|
||||
|
||||
|
||||
- @artist[:albums].each do |album|
|
||||
|
@ -26,4 +27,6 @@
|
|||
- album[:tracks].each do |track|
|
||||
%tr
|
||||
%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:
|
||||
add: "Add to Now Playing"
|
||||
add_one: "add"
|
||||
repeat: "Repeat"
|
||||
shuffle: "Shuffle"
|
||||
do_empty: "Empty"
|
|
@ -46,6 +46,7 @@ ru:
|
|||
|
||||
player:
|
||||
add: "Добавить в плей-лист"
|
||||
add_one: "добавить"
|
||||
repeat: "Повторять"
|
||||
shuffle: "Перемешать"
|
||||
do_empty: "Очистить"
|
Loading…
Reference in New Issue