Sha256: f81ec16f82ddc58a05648799a8b17217f3660003c20cf79e2858b50a55106c78

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 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

4 entries across 4 versions & 1 rubygems

Version Path
refinerycms-0.9.8.4 vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/plural_name/show.html.erb
refinerycms-0.9.8.3 vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/plural_name/show.html.erb
refinerycms-0.9.8.2 vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/plural_name/show.html.erb
refinerycms-0.9.8.1 vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/plural_name/show.html.erb