Skip to content

Instantly share code, notes, and snippets.

@elight
Created September 9, 2011 17:18
Show Gist options
  • Save elight/1206789 to your computer and use it in GitHub Desktop.
Save elight/1206789 to your computer and use it in GitHub Desktop.
- pres = UserPresenter.new(@user).render do
- content_for :title, "#{github_login}'s profile"
#user-profile
= image_tag gravatar_image_url, class: :avatar
%h2= name
%ul
%li.pairing-preference
%label
Pairing preference
%span.value= pairing_preference
- display_location do |loc|
%li.location
%label Location
%span.value= loc
- display_email do |email|
%li.email
%label E-mail
%span.value= mail_to email, email, encode: "javascript"
- display_twitter do |handle, link|
%li.twitter
%label Twitter
%span.value= link_to handle, link
%li.interests
%label Interests
%span.value.lengthy= interest_links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment