Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% unless @projects.empty? %>
- <table>
- <% number_of_columns = 5 %>
- <% @projects.each_with_index do |project, project_index| %>
- <% if (project_index == 0)%>
- <tr>
- <% end %>
- <% if (project_index % number_of_columns == 0) %>
- </tr>
- <tr>
- <% end %>
- <td>
- <%= link_to image_tag(project.icon.url(:thumbnail), :class => "project_icon"), {:action => :show, :id => project}, :class => "invisible_link" -%><br/>
- <%= link_to project.name.downcase, {:action => :show, :id => project} -%><br/>
- </td>
- <% end %>
- </table>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement