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

Version Path
refinerycms-0.9.6.34 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.33 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.32 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.31 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.30 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.29 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.28 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.27 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.26 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.25 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.24 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.23 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.22 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.6.21 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb