Sha256: 6a15e169ac25ebaa00c88e11f8a054d703b4ceaf384230239a5cf208a11734ab

Contents?: true

Size: 969 Bytes

Versions: 2

Compression:

Stored size: 969 Bytes

Contents

<div class="pulitzer-row">
  <%= form_for version, html: ajax_form_hash(dom_target(version.post, :preview_version)).merge( class: 'pulitzer-form-left' ) do |f| %>
    <%= f.submit "Activate", data: {prevent_double_click: true} %>
    <%= hidden_field_tag :status, :active %>
  <% end %>

  <%= form_for version,  html: ajax_form_hash(dom_target(version.post, :preview_version)).merge( class: 'pulitzer-form-left' ) do |f| %>
    <%= f.submit "Abandon Changes", data: {prevent_double_click: true} %>
    <%= hidden_field_tag :status, :abandoned %>
  <% end %>

  <% if version.post.active_version && !instance_eval(&Pulitzer.unpublish_authorization) %>
    <%= form_for version.post.active_version,  html: ajax_form_hash(dom_target(version.post, :preview_version)).merge( class: 'pulitzer-form-left' ) do |f| %>
      <%= f.submit "Unpublish Post", data: {prevent_double_click: true} %>
      <%= hidden_field_tag :status, :abandoned %>
    <% end %>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pulitzer-0.5.9 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.5.8 app/views/pulitzer/versions/_form.html.erb