Sha256: aab876f1db44c4e6639c11b08f4d21403549054dbeffdb691b4c1d25a198fc11
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
<%% title "All <%=parent_plural_class_name%>" %> <%% heading "Dresen Landscaping Project Gallery" %> <%%= 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dust-generators-0.2.0 | rails_generators/dust_albums/templates/app/views/view_albums/index.html.erb |