Sha256: 81e8e29f9161df74617fb3130704f59ee664f3f2fdd60caa7021babde2f47c7e
Contents?: true
Size: 1023 Bytes
Versions: 15
Compression:
Stored size: 1023 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> <% 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><%%= t('.other') %></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
15 entries across 15 versions & 1 rubygems