Files
9minutes/app/views/users/_show.html.haml
T
2011-06-30 06:38:27 +02:00

23 lines
646 B
Plaintext

#user_left
=image_tag validate_avatar(user), :class => "picture"
.information
%h1= user.username || current_user.email
%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
%li profile
- if user == current_user
%li settings
.content
%div
- user.artists.each do |artist|
%p
=artist.name
=image_tag artist.img_url
- if user == current_user
%div=render :partial => "edit", :locals => { :user => current_user }