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.11 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.10 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.9 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.8 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.7 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.6 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.5 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.4 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.3 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.2 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.1 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.15.0 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.14.4 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.14.3 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.14.2 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.14.1 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.14.0 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.13.1 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.12.5 app/views/pulitzer/versions/_form.html.erb
pulitzer-0.13.0 app/views/pulitzer/versions/_form.html.erb