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.2.1 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.2.0 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.10 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.9 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.8 spec/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.7 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.6 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.5 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.4 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.3 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.2 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.1 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.1.0 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.0.5 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.0.4 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.0.3 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.0.2 test/dummy/app/views/pages/freeform.html.erb
pulitzer-0.0.1 test/dummy/app/views/pages/freeform.html.erb