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.12.4 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.12.3 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.12.2 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.12.1 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.12.0 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.11.3 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.11.2 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.11.1 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.11.0 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.10.3 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.10.2 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.10.1 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.10.0 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.5.14 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.5.13 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.5.11 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.5.10 app/views/pulitzer/versions/_form.html.erb