Sha256: 5522ba3aec71735a839e281b64b44bcf1d2bad1d37f2d0a901cba3fb2e763a71
Contents?: true
Size: 1.45 KB
Versions: 11
Compression:
Stored size: 1.45 KB
Contents
<%% content_for :body_content_title do %> <%%= @<%= singular_name %><% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? %>.<%= title.name %><% else %>.title<% end %> %> <%% end %> <%% content_for :body do %> <% attributes.each do |attribute| -%> <section> <h1><%= attribute.name.titleize %></h1> <p> <% if attribute.refinery_type == :image -%> <%%= image_fu @<%= singular_name %>.<%= attribute.name.gsub('_id', '') %>, nil %> <% elsif attribute.refinery_type == :resource -%> <%% if @<%= singular_name %>.<%= attribute.name %>.present? %> <%%= link_to <%= "'#{attribute.name}'" %>, @<%= singular_name %>.<%= attribute.name.gsub('_id', '') %>.url %> <%% else %> <%= attribute.name %> <%% end %> <% else -%> <%%=raw @<%= singular_name %>.<%= attribute.name %> %> <% end -%> </p> </section> <% end -%> <%% end %> <%% content_for :side_body do %> <aside> <h2><%%= t('.other') %></h2> <ul id="<%= plural_name %>"> <%% @<%= "all_" if plural_name == singular_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 %><% else %>.title<% end %>, refinery.<%= namespacing.underscore %>_<%= singular_name %>_path(<%= singular_name %>) %> </li> <%% end %> </ul> </aside> <%% end %> <%%= render '/refinery/content_page' %>
Version data entries
11 entries across 11 versions & 1 rubygems