Skip to content

Instantly share code, notes, and snippets.

@rickharris
Created November 29, 2012 21:39
Show Gist options
  • Save rickharris/4172092 to your computer and use it in GitHub Desktop.
Save rickharris/4172092 to your computer and use it in GitHub Desktop.
<% bonus_videos = RecentClasses.bonus_content_videos(2) %>
<% bonus_videos.each do |video| %>
<div class="primary two-quarter <%= "last" if video == bonus_videos.last %>
<%= link_to(library_slug_url(:slug => video.slug), :class => "contained feature") do %>
<span class="flag flag-right">New</span>
<div class="flush">
<div class="hero-container">
<%= image_tag video.bonus_content_series.image_url %>
<%= image_tag cloudfront_signed_url("stills/" + video.still_image.to_s), :class => "video-thumb" %>
</div>
</div>
<h3><%= video.title %></h3>
<p><%= video.bonus_content_series.title %></p>
<% end %>
</div>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment