Skip to content

Instantly share code, notes, and snippets.

@hexgnu
Created January 17, 2012 00:53
Show Gist options
  • Save hexgnu/1623896 to your computer and use it in GitHub Desktop.
Save hexgnu/1623896 to your computer and use it in GitHub Desktop.
%li{:class => (network == n && request.path != '/timeline' ? "active #{n.class.to_s.downcase}" : n.class.to_s.downcase)}
- if n.is_a?(TwitterNetwork)
-#= link_to "@#{n.name}", networks_twitter_url(n)
- url = networks_twitter_url(n)
-#= link_to "@#{n.name}", networks_twitter_url(n)
- else
-#= link_to n.name, networks_facebook_url(n)
- url = networks_facebook_url(n)
%a{:href => url}
-#%label.network{:class => "#{n.class.to_s.downcase}", :for => "sn#{n.class.to_s}"}
= n.name
%img.avatar.yyy{:alt => n.name, :src => n.image_url, :title => "#{n.name} (#{n.type_label})" }
-#= n.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment