Sha256: db8922273dd29d7865122769a6e2a839d574e7e31debee1834fdbee50d03ac75
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
<%% title "All <%=parent_plural_class_name%>" %> <%% heading "All <%=parent_plural_class_name%>" %> <%%= will_paginate @<%=parent_plural_name%> %> <%% @<%=parent_plural_name%>.each do |<%=parent_singular_name%>| %> <div class="<%=parent_singular_name%>_thumb"> <%% unless <%=parent_singular_name%>.<%=child_plural_name%>.empty? %> <%% @<%=child_singular_name%> = <%=parent_singular_name%>.<%=child_plural_name%>.find(:first) %> <%% link_to view_<%=parent_singular_name%>_path(<%=parent_singular_name%>.filename), :style => 'float:left; ' do %> <%%= image_tag @<%=child_singular_name%>.file.url(:thumb), :alt => <%=parent_singular_name%>.heading %> <%% end %> <p> <%%= link_to <%=parent_singular_name%>.title, view_<%=parent_singular_name%>_path(<%=parent_singular_name%>.filename) %><br /> <%%= truncate(<%=parent_singular_name%>.desc, :length => 100) %> <%%= link_to "Read More", view_<%=parent_singular_name%>_path(<%=parent_singular_name%>.filename) unless <%=parent_singular_name%>.desc.blank? %> </p> <%% end -%> </div> <%% end -%> <div class="clear"></div> <%%= will_paginate @<%=parent_plural_name%> %>
Version data entries
2 entries across 2 versions & 1 rubygems