Sha256: 2c7a4ba5726b6be70d1814e893f320b359cab6880dc8109c2102764fe7c72e20
Contents?: true
Size: 1.91 KB
Versions: 19
Compression:
Stored size: 1.91 KB
Contents
<% if version.processing_failed? %> <div class="pulitzer-row"> There was a problem creating the new preview version of this post for editing. <ul> <% version.cloning_errors.each do |error| %> <li><%= error %></li> <% end %> </ul> </div> <% elsif version.processing? %> <h2> Processing Preview for <%= version.title %> </h2> <div class="pulitzer-row"> <progress value="0" max="<%= version.active_version.present? ? version.total_processing_elements : 50 %>" <%= listener_attrs version, :processed_element_count if defined? ForeignOffice %>></progress> </div> <a <%= listener_attrs version.post, :new_preview_version, trigger: true if defined? ForeignOffice %> <%= ajax_link_attrs(dom_target(version.post, :preview_version)) %> > </a> If the preview does not appear within a few minutes, click here to see if it's available. <%= ajax_link "refresh preview", edit_version_path(version), {}, dom_target(version.post, :preview_version) %> <% elsif version.preview? %> <div class="pulitzer-row margin-bottom list-item"> <div class="pulitzer-row"> <div class="pulitzer-span margin match-h2" <%= expander(dom_id(version, :tags)) %>>▸</div> <div class="pulitzer-span margin match-h2" <%= collapser(dom_id(version, :tags)) %>>▾</div> <div class="pulitzer-span"><h2>Tags</h2></div> </div> <div <%= collapsed(dom_id(version, :tags)) %>> <% Pulitzer::Post::TAG_MODELS.each do |tag_model| %> <%= render partial: 'pulitzer/post_tags/show_wrapper', locals: { version: version, tag_model: tag_model } %> <% end %> </div> </div> <% version.all_elements.each do |element| %> <%= render partial: "/pulitzer/#{element.class.table_name.gsub(/pulitzer_/,'')}/show_wrapper", locals: { element: element } %> <% end %> <div class="pulitzer-row"> <%= render partial: 'pulitzer/versions/form', locals: { version: version } %> </div> <% end %>
Version data entries
19 entries across 19 versions & 1 rubygems