Skip to content

Instantly share code, notes, and snippets.

@gareth
Created June 10, 2013 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gareth/5751456 to your computer and use it in GitHub Desktop.
Save gareth/5751456 to your computer and use it in GitHub Desktop.
<div class="left-main">
<p class="original-site">RECENT DESIGNS</p>
<% @articles.each.with_index do |article, i| %>
<% if i % 4 == 0 %>
<%= link_to(image_tag(article.main_image_url.to_s), article, {:class => 'dock-item'}) %>
<% else %>
<%= link_to(image_tag(article.main_image_url.to_s), article, {:class => 'dock-item2'}) %>
<% end %>
<% end %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment