New Bulk Revert

You must preview a bulk revert before processing it. Previews may take several minutes to generate.

<%= form_tag(moderator_bulk_revert_path, :class => "simple_form") do %>
<%= text_field :constraints, :user_name, :value => @constraints[:user_name] %>
<%= text_field :constraints, :min_version_id, :value => @constraints[:min_version_id] %>
<%= text_field :constraints, :max_version_id, :value => @constraints[:max_version_id] %>
<%= text_field :constraints, :added_tags, :value => @constraints[:added_tags], :data => { :autocomplete => "tag" } %>

You must specify a user to add tags

<%= text_field :constraints, :removed_tags, :value => @constraints[:removed_tags], :data => { :autocomplete => "tag" } %>

You must specify a user to add tags

<%= submit_tag "Test" %> <% if params[:commit] == "Test" %> <%= submit_tag %> <% end %> <% end %> <% if @bulk_revert %>

Preview limited to 200 changes

<% @bulk_revert.preview.limit(200).each do |post_version| %> <% end %>
Post Date User Changes
<%= link_to("#{post_version.post_id}.#{post_version.id}", post_path(post_version.post_id)) %> <%= compact_time(post_version.updated_at) %> <% if post_version.updater %> <%= link_to_user(post_version.updater) %> <% end %> <%= post_version_diff(post_version) %>
<% end %>
<% content_for(:page_title) do %> New Bulk Revert - <%= Danbooru.config.app_name %> <% end %> <% content_for(:html_header) do %> <%= javascript_tag do %> $(function() { if (!$("#constraints_user_name").val().length) { $("#added-tags-input input").prop("disabled", true); $("#removed-tags-input input").prop("disabled", true); } $("#constraints_user_name").keyup(function() { if ($("#constraints_user_name").val().length) { $("#added-tags-input input").prop("disabled", false); $("#removed-tags-input input").prop("disabled", false); } else { $("#added-tags-input input").prop("disabled", true); $("#removed-tags-input input").prop("disabled", true); } }); }); <% end %> <% end %>