Skip to content

Instantly share code, notes, and snippets.

@sprite2005
Created May 24, 2009 19:46
Show Gist options
  • Save sprite2005/117232 to your computer and use it in GitHub Desktop.
Save sprite2005/117232 to your computer and use it in GitHub Desktop.
- rounded_box do
%p
%span.hentry.yui-gf{"class"=>"#{user.vendor ? 'community_pro' : ''} #{user.featured_writer ? 'featured_writer' : ''}"}
.vcard.author
.yui-u.first.centered
= link_to image_tag( user.avatar_photo_url(:thumb), :class => "polaroid" ), user_path(user)
.yui-g
.yui-u.first
%h2= link_to user.login, user_path(user)
%ul
- if user.metro_area
%li.geo= :from2.l + " #{user.location}<br/>"
%li.update
%abbr.published{:title=>"#{user.created_at}"}
=:joined.l + " #{time_ago_in_words user.created_at}"
- if user.offerings.any?
%li.skills= user.offerings.collect{|o| link_to o.skill.name, skill_url(o.skill) }.join(', ')
- if current_user and current_user.can_request_friendship_with(user)
%li.addfriend= add_friend_link(user)
= "<p>" + user.tags[0...6].collect{|t| link_to( t.name, tag_url(t), :class => "tag") if t }.join(" ") + "</p>" unless user.tags.empty?
.yui-u{"style"=>"overflow:hidden"}
- if @search && @search['description']
= truncate_words_with_highlight user.description, @search['description']
- else
= truncate_words user.description, 18, '...'
- if current_user && current_user.admin?
%br
= link_to( :assume_id.l, assume_user_path(user) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment