Sha256: 3662c8b5270df5792edbbff125f8df83882d4a8a85b88ef410f356a91c4ea07f
Contents?: true
Size: 1.01 KB
Versions: 14
Compression:
Stored size: 1.01 KB
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> <% if attribute.type.to_s == 'image' -%> <%%= image_fu @<%= singular_name %>.<%= attribute.name %>, nil %> <% elsif attribute.type.to_s == 'resource' -%> <%%= link_to <%= "'#{attribute.name}'" %>, @<%= singular_name %>.<%= attribute.name %>.public_filename %> <% else -%> <%%= @<%= singular_name %>.<%= attribute.name %> %> <% 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
14 entries across 14 versions & 1 rubygems