Created
December 16, 2011 16:41
-
-
Save ni-ka/1486790 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% @videos.in_groups_of(3) do |video_group| %> | |
<div class="row"> | |
<% video_group.each do |video| %> | |
<% if video != nil %> | |
<div class="span4"> | |
<%= link_to video do %> | |
<img class="thumbnail" src="http://placehold.it/210x150" /> | |
<% end %> | |
<h5><%= video.title rescue "No title" %></h5> | |
</div> | |
<% end %> | |
<% end %> | |
</div> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment