Sha256: f0acc6a1e9b1ec199db38f4d5aafbf174f7b85558ad0479016e2292a8736c16c

Contents?: true

Size: 968 Bytes

Versions: 57

Compression:

Stored size: 968 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

57 entries across 57 versions & 1 rubygems

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