1
0
Fork 0

Add single track button

This commit is contained in:
Gregory Eremin 2011-09-26 17:34:18 +04:00
parent a74376009a
commit 037f16ea80
5 changed files with 36 additions and 6 deletions

View File

@ -229,3 +229,4 @@ $('.add-album').live 'click', ->
item['album'] = album.name
_player.addTracks album.tracks
false

View File

@ -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;
}
}
}
}

View File

@ -7,6 +7,7 @@
.span7.columns.desc
%h2= @artist[:artist][:name]
= @artist[:artist][:desc] unless @artist[:artist][:desc].nil?
- unless @artist[:artist][:urls].nil?
.service-icons
- @artist[:artist][:urls].each do |service|
- if ['wikipedia', 'microblog', 'official_homepage', 'social_network'].include?service.service
@ -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'

View File

@ -46,6 +46,7 @@ en:
player:
add: "Add to Now Playing"
add_one: "add"
repeat: "Repeat"
shuffle: "Shuffle"
do_empty: "Empty"

View File

@ -46,6 +46,7 @@ ru:
player:
add: "Добавить в плей-лист"
add_one: "добавить"
repeat: "Повторять"
shuffle: "Перемешать"
do_empty: "Очистить"