add basic user revert functionality

This commit is contained in:
r888888888
2016-09-28 04:56:12 -07:00
parent 859efe026c
commit 5b48d272f2
8 changed files with 121 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
<div id="c-users">
<div id="a-new">
<h1>Revert Changes</h1>
<p>You are about to revert all changes made by <%= link_to_user @user %>. Continue?</p>
<%= form_tag(user_revert_path) do %>
<%= hidden_field_tag :user_id, params[:user_id] %>
<%= submit_tag "Yes" %>
<% end %>
</div>
</div>
<%= render "users/secondary_links" %>
<% content_for(:page_title) do %>
User Revert - <%= Danbooru.config.app_name %>
<% end %>