Service icons
This commit is contained in:
parent
0f62fae63c
commit
6be5868588
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 152 B |
Binary file not shown.
After Width: | Height: | Size: 318 B |
|
@ -43,4 +43,8 @@ $ ->
|
||||||
false
|
false
|
||||||
$('.dropdown-menu li a').live 'click', ->
|
$('.dropdown-menu li a').live 'click', ->
|
||||||
$(this).parent().parent().parent().toggleClass('open')
|
$(this).parent().parent().parent().toggleClass('open')
|
||||||
|
false
|
||||||
|
$('.foreign-link').live 'click', ->
|
||||||
|
# window.open($(this).attr('href'))
|
||||||
|
e.preventDefault();
|
||||||
false
|
false
|
|
@ -9,6 +9,13 @@
|
||||||
}
|
}
|
||||||
.desc {
|
.desc {
|
||||||
height: 220px;
|
height: 220px;
|
||||||
|
.service-icons {
|
||||||
|
margin-top: 15px;
|
||||||
|
a {
|
||||||
|
text_decoration: none;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -78,9 +78,10 @@ class ArtistController < ApplicationController
|
||||||
id: artist.id,
|
id: artist.id,
|
||||||
name: artist.name,
|
name: artist.name,
|
||||||
desc: ActionController::Base.helpers.strip_tags(artist.desc),
|
desc: ActionController::Base.helpers.strip_tags(artist.desc),
|
||||||
pic: artist.pic_url
|
pic: artist.pic_url,
|
||||||
|
urls: artist.artist_links
|
||||||
}
|
}
|
||||||
|
ap artist.artist_links
|
||||||
media_types = @@default_album_types
|
media_types = @@default_album_types
|
||||||
session = Session.find_by_key(session_key)
|
session = Session.find_by_key(session_key)
|
||||||
unless session.nil?
|
unless session.nil?
|
||||||
|
|
|
@ -7,6 +7,11 @@
|
||||||
.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?
|
||||||
|
.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|
|
- @artist[:albums].each do |album|
|
||||||
|
|
Loading…
Reference in New Issue