2011-06-10 02:16:30 +02:00
|
|
|
#user_left
|
2011-06-30 06:38:27 +02:00
|
|
|
=image_tag validate_avatar(user), :class => "picture"
|
2011-06-10 02:16:30 +02:00
|
|
|
.information
|
2011-06-30 08:18:10 +02:00
|
|
|
%h1= (user.username || current_user.email)
|
2011-06-10 02:16:30 +02:00
|
|
|
%ul.nav
|
|
|
|
|
%li=image_tag "icons/artist-info.png"
|
|
|
|
|
%li=image_tag "icons/artist-links.png"
|
|
|
|
|
%ul.con
|
|
|
|
|
%li="#{user.playcount} Plays"
|
|
|
|
|
%li="#{user.playlist.count} Playlists"
|
|
|
|
|
.tabs.tabs_js.w02
|
|
|
|
|
%ul.nav
|
2011-07-02 16:49:00 +02:00
|
|
|
%li favourite artists
|
2011-06-30 06:38:27 +02:00
|
|
|
- if user == current_user
|
|
|
|
|
%li settings
|
2011-06-10 02:16:30 +02:00
|
|
|
.content
|
2011-06-30 06:38:27 +02:00
|
|
|
%div
|
2011-06-30 08:18:10 +02:00
|
|
|
%ul.list.related
|
|
|
|
|
- user.artists.each do |artist|
|
|
|
|
|
%li<
|
|
|
|
|
= link_to "#!/artists/#{CGI.escape(artist.name)}" do
|
|
|
|
|
%h5= trimString(artist.name, 20)
|
|
|
|
|
.img
|
|
|
|
|
= image_tag artist.img_url
|
|
|
|
|
%br.clean
|
2011-06-30 06:38:27 +02:00
|
|
|
- if user == current_user
|
|
|
|
|
%div=render :partial => "edit", :locals => { :user => current_user }
|