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

@@ -56,7 +56,12 @@
<tr>
<th>Post Changes</th>
<td><%= presenter.post_version_count(self) %></td>
<td>
<%= presenter.post_version_count(self) %>
<% if CurrentUser.is_janitor? %>
[<%= link_to "revert all", new_user_revert_path(user_id: user.id) %>]
<% end %>
</td>
</tr>
<tr>