Sha256: bf0a8e4b18d8795479fde5ee5a02af74cf0603c52e193c8aabf75e18018e57a7
Contents?: true
Size: 1.14 KB
Versions: 5
Compression:
Stored size: 1.14 KB
Contents
<%% content_for :body_content_title do %> <%%= @<%= singular_name %><% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? %>.<%= title.name %><% end %> %> <%% 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 %>.url %> <% else -%> <%%=raw @<%= 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 %><% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? %>.<%= title.name %><% end %>, <%= singular_name %>_url(<%= singular_name %>) %> </li> <%% end %> </ul> <%% end %> <%%= render :partial => "/shared/content_page" %>
Version data entries
5 entries across 5 versions & 1 rubygems