Sha256: 1916e501be80c6ed7335651fa0612e766d3f4615b79d551823e0b2e593363dd4
Contents?: true
Size: 885 Bytes
Versions: 2
Compression:
Stored size: 885 Bytes
Contents
<%% content_for :body_content_title do %> <%%= @<%= singular_name %>.<%= attributes.first.name %> %> <%% end %> <%% content_for :body_content_left do %> <% attributes.each do |attribute| %> <div> <h3><%= attribute.name.titleize %></h3> <% unless attribute.type.to_s == 'image' -%> <%%= @<%= singular_name %>.<%= attribute.name %> %> <% else -%> <%%= image_fu @<%= singular_name %>.<%= attribute.name %>, nil %> <% end -%> </div> <% end %> <%% end %> <%% content_for :body_content_right do %> <h2>Other <%= $title_name.pluralize %></h2> <ul id="<%= plural_name %>"> <%% @<%= plural_name %>.each do |<%= singular_name %>| %> <li> <%%= link_to <%= singular_name %>.<%= attributes.first.name %>, <%= singular_name %>_url(<%= singular_name %>) %> </li> <%% end %> </ul> <%% end %> <%%= render :partial => "/shared/content_page" %>
Version data entries
2 entries across 2 versions & 1 rubygems