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)) %>>&rtrif;</div>
      <div class="pulitzer-span margin match-h2" <%= collapser(dom_id(version, :tags)) %>>&dtrif;</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

Version Path
pulitzer-0.15.31 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.30 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.29 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.28 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.27 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.26 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.25 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.24 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.23 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.22 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.21 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.20 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.19 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.18 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.17 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.16 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.15 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.14 app/views/pulitzer/versions/_edit.html.erb
pulitzer-0.15.13 app/views/pulitzer/versions/_edit.html.erb