Sha256: e8e1b0d63de8abc3d4a24edc8c04c705ac2162f293a2a6bad9c2c6742e0cd478
Contents?: true
Size: 1007 Bytes
Versions: 17
Compression:
Stored size: 1007 Bytes
Contents
<div id="elsewhere"> <% cache "#{__FILE__}/latest_tweet", :ttl => 3.minutes do %> <% tweet = ::BrighterPlanetLayout.latest_tweet -%> <% if tweet %> <div id="twitter"> <p> <%= auto_link tweet.description.sub('brighterplanet: ', '') %> <span>via <%= link_to '@brighterplanet', 'http://twitter.com/brighterplanet' %></span> </p> </div> <% end %> <% end %> <% cache "#{__FILE__}/latest_blog_post", :ttl => 3.minutes do %> <% blog_post = ::BrighterPlanetLayout.latest_blog_post -%> <% if blog_post %> <div id="blog" class="<%= blog_post.author.downcase.dasherize %>"> <p><%= link_to blog_post.title, blog_post.link %> <span>by <%= blog_post.author %> <%= time_ago_in_words blog_post.updated %> ago on <%= link_to 'Safety in Numbers', 'http://numbers.brighterplanet.com' %>, our blog</span></p> </div> <% end %> <% end %> </div>
Version data entries
17 entries across 17 versions & 2 rubygems