Skip to content

Instantly share code, notes, and snippets.

@ruckus
Created April 29, 2010 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruckus/384326 to your computer and use it in GitHub Desktop.
Save ruckus/384326 to your computer and use it in GitHub Desktop.
- unless @badge_js_url.nil?
%script{ :src => @badge_js_url }
%style{ :type => "text/css" }
== #medpedia_badge_large {display:block !important !important;text-align:left !important !important;}
== #medpedia_badge_large a{font-family:Lucida,sans-serif !important !important;color:#787B7D !important;font-weight:bold !important;text-decoration:none !important;font-size:12px !important;display:block !important;width:125px !important;line-height:12px !important;}
== #medpedia_badge_large .image_link{height:125px !important;width:125px !important;}
== #medpedia_badge_large .text_link{position:relative !important;left:16px !important;top:-20px !important;width:100px !important;}
== #medpedia_badge_large img{border:none !important;}
#medpedia_badge_large
- unless @blog.nil?
= link_to image_tag(badge_image_url(@blog.id, observer, :type => :large), :alt => "Medpedia News & Analysis"), blogs_url, :class => :image_link
= link_to "News & Analysis", blogs_url, :class => :text_link
gets rendered to:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title></title>
</head>
<body>
<div id="medpedia_badge_large" style="display:block !important;text-align:left !important;">
<a href="http://localhost:3000/news_analysis" class="image_link" style="font-family:Lucida,sans-serif !important;color:#787B7D !important;font-weight:bold !important;text-decoration:none !important;font-size:12px !important;display:block !important;line-height:12px !important;height:125px !important;width:125px !important;"><img alt="Medpedia News &amp; Analysis" src="http://localhost:3000/b/40/7/image?type=large" style="display:block !important;"></a><a href="http://localhost:3000/news_analysis" class="text_link" style="font-family:Lucida,sans-serif !important;color:#787B7D !important;font-weight:bold !important;text-decoration:none !important;font-size:12px !important;display:block !important;width:125px !important;line-height:12px !important;position:relative !important;left:16px !important;top:-20px !important;width:100px !important;">News &amp; Analysis</a>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment