fix #1724 for posts

This commit is contained in:
Toks
2013-06-09 11:40:34 -04:00
parent 99998561b6
commit 2d0c3d16a3
5 changed files with 42 additions and 0 deletions

View File

@@ -36,6 +36,9 @@
<td><%= post_version_diff(post_version) %></td>
<% if CurrentUser.is_member? %>
<td>
<% if post_version.id != post_version.post.versions.first.id %>
<%= link_to "Undo", undo_post_version_path(post_version), :method => :put, :remote => true %> |
<% end %>
<%= link_to "Revert to", revert_post_path(post_version.post_id, :version_id => post_version.id), :method => :put, :remote => true %>
</td>
<% end %>

View File

@@ -0,0 +1 @@
location.reload();