Sha256: 6a131b12d17186ff8ba379034b1a8e9255bca9830d19eee7440495c9910d93da

Contents?: true

Size: 515 Bytes

Versions: 38

Compression:

Stored size: 515 Bytes

Contents

<h1><%= @pulitzer_post.title %></h1>

<%= @pulitzer_post.content_elements.sorted.each do |content_element| %>
  <% case content_element.type %>
  <% when :image %>
    <div class="image_with_caption">
      <%= image_tag @pulitzer_post.content_element('Hero').body %>
      <%= @pulitzer_post.content_element('Hero').title %>
    </div>
  <% when :text %>
    <h2><%= @pulitzer_post.content_element('Main Body').title %></h2>
    <p><%= @pulitzer_post.content_element('Main Body').body %></p>
  <% end %>
<% end %>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
pulitzer-0.4.8 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.4.7 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.4.6 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.4.5 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.4.4 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.4.3 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.4.2 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.4.1 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.4.0 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.3.9 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.3.8 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.3.7 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.3.6 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.3.5 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.3.4 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.3.3 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.3.2 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.3.1 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.3.0 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.2.2 spec/dummy/app/views/pages/freeform.html.erb