Template content elements

<% version.template_content_elements.each do |content_element| %> <%= render partial: '/pulitzer/content_elements/show_wrapper', locals: { content_element: content_element } %> <% end %> <% if version.allow_free_form? %>

Free form content elements

<%= ajax_link "add a new content element for #{version.title}", new_content_element_path(version_id: version), {}, "#new_free_form_content_element_#{dom_id(version)}" %>
<% version.free_form_content_elements.each do |content_element| %> <%= render partial: '/pulitzer/content_elements/show_wrapper', locals: { content_element: content_element } %> <% end %>
<% end %>