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

Version Path
refinerycms-0.9.7.15 vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/show.html.erb
refinerycms-0.9.7.14 vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/show.html.erb
refinerycms-0.9.7.13 vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/show.html.erb
refinerycms-0.9.7.11 vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/show.html.erb
refinerycms-0.9.7.10 vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/show.html.erb
refinerycms-0.9.7.9 vendor/plugins/refinery/lib/generators/refinery_plugin/templates/views/show.html.erb
refinerycms-0.9.7.8 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.7.7 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.7.6 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.7.5 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.7.4 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.7.3 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.7.2 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.7.1 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb
refinerycms-0.9.7 vendor/plugins/refinery/lib/generators/refinery/templates/views/show.html.erb