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

Version Path
brighter_planet_layout-0.2.39 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.38 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-ruby19-0.2.37.1 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-ruby19-0.2.37 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.37 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.36 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.35 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.34 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.33 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.32 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.31 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.30 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.29 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.28 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.27 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.26 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.2.25 app/views/layouts/_elsewhere.html.erb