Color fixes, deploy task
This commit is contained in:
@@ -47,9 +47,9 @@ class window.Ajax
|
||||
_page.render response
|
||||
_ajax.hideSpinner()
|
||||
if _session.getUser().id?
|
||||
$('.button-container').show()
|
||||
$('.authorized-action').show()
|
||||
else
|
||||
$('.button-container').hide()
|
||||
$('.authorized-action').hide()
|
||||
false
|
||||
false
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@ class window.Search
|
||||
_page.render data
|
||||
_search.hideSpinner()
|
||||
if _session.getUser().id?
|
||||
$('.button-container').show()
|
||||
$('.authorized-action').show()
|
||||
else
|
||||
$('.button-container').hide()
|
||||
$('.authorized-action').hide()
|
||||
if data.status is 'loading'
|
||||
setTimeout () ->
|
||||
_search.loadArtistData name
|
||||
|
||||
@@ -41,9 +41,11 @@ class window.Session
|
||||
displayAuthorizedContent: ->
|
||||
$('.playlist, .player').show()
|
||||
$('.ad_here, #login').hide()
|
||||
$('.authorized-action').show()
|
||||
$('#authorized').css display: 'block'
|
||||
|
||||
hideAuthorizedContent: ->
|
||||
$('.playlist, .player, #authorized').hide()
|
||||
$('.ad_here').show()
|
||||
$('.authorized-action').hide()
|
||||
$('#login').css display: 'block'
|
||||
|
||||
@@ -33,4 +33,11 @@ table.stats {
|
||||
.data.artist {
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.page-link {
|
||||
color: inherit;
|
||||
&:hover {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
@@ -24,15 +24,16 @@
|
||||
%table.zebra-striped
|
||||
%tr
|
||||
%td
|
||||
%span.label.success.set-playlist{ href: "", 'data-playlist' => "lastfm-top50/#{@data[:url_name]}" }= t('player.set_playlist')
|
||||
%span.label.success.authorized-action.set-playlist{ href: "", 'data-playlist' => "lastfm-top50/#{@data[:url_name]}" }
|
||||
= t('player.set_playlist')
|
||||
%a.page-link.playlist-name{ href: "/playlist/lastfm-top50/#{@data[:url_name]}" }= "#{@data[:name]}: Last.fm TOP"
|
||||
|
||||
- @data[:albums].each do |album|
|
||||
.row.album
|
||||
.span4.columns.art
|
||||
%img{ src: album[:pic_url] }
|
||||
.button-container
|
||||
%a.btn.add-album{ 'data-tracks' => album[:tracks].map{|_|_[:id]}.join(",") }= t('player.add')
|
||||
.button-container.authorized-action
|
||||
%a.btn.success.add-album{ 'data-tracks' => album[:tracks].map{|_|_[:id]}.join(",") }= t('player.add')
|
||||
.span7.columns.tracks
|
||||
%h3
|
||||
= album[:name]
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
- unless @data[:pic_url].nil?
|
||||
%img{ src: @data[:pic_url] }
|
||||
.button-container
|
||||
%a.btn.add-album{ 'data-tracks' => @data[:tracks].map{|_|_[:id]}.join(",") }= t('player.play_all')
|
||||
%a.btn.success.authorized-action.add-album{ 'data-tracks' => @data[:tracks].map{|_|_[:id]}.join(",") }= t('player.play_all')
|
||||
.span8.columns.tracks
|
||||
%h3= @data[:name]
|
||||
%table.zebra-striped.tracklist
|
||||
|
||||
Reference in New Issue
Block a user