Sha256: dae9279bc9e18e1cabbe60c03bf191ec7936d79b1eecbcc8972bee76ccea73d4

Contents?: true

Size: 1.75 KB

Versions: 17

Compression:

Stored size: 1.75 KB

Contents

    <div id="elsewhere">
      <% cache "brighter_planet_layout/latest_tweet", :expires_in => 43.minutes do %>
        <!-- Cached at <%= Time.now %> -->
        <% tweet = ::BrighterPlanet.layout.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>
        <% else %>
          <div id="twitter">
            <p>
              Check out our <a href="http://twitter.com/brighterplanet">Twitter feed</a>
              <span>via <a href="http://twitter.com/brighterplanet">@brighterplanet</a></span>
            </p>
          </div>
        <% end %>
      <% end %>
      <% cache "brighter_planet_layout/latest_blog_post", :expires_in => 47.minutes do %>
        <!-- Cached at <%= Time.now %> -->
        <% blog_post = ::BrighterPlanet.layout.latest_blog_post -%>
        <% if blog_post %>
          <div id="blog" class="<%= blog_post.author.downcase.dasherize %>">
            <p>
              <span><%= blog_post.author %> posted</span>
              <%= link_to blog_post.title, blog_post.link %>
              <span><%= time_ago_in_words blog_post.updated %> ago on <%= link_to 'Safety in Numbers', 'http://numbers.brighterplanet.com' %>, our blog</span>
            </p>
          </div>
        <% else %>
          <div id="blog" class="andy">
            <p>
              See <a href="http://numbers.brighterplanet.com">the latest posts</a>
              <span>by Andy on <a href="http://numbers.brighterplanet.com">Safety in Numbers</a>, our blog</span>
            </p>
          </div>
        <% end %>
      <% end %>
    </div>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
brighter_planet_layout-0.5.5 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.5.4 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.5.3 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.5.2 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.5.1 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.4.5 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.4.4 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.4.3 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.4.2 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.4.1 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.4.0 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.3.16 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.3.15 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.3.14 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.3.13 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.3.12 app/views/layouts/_elsewhere.html.erb
brighter_planet_layout-0.3.11 app/views/layouts/_elsewhere.html.erb