post replacement: add "Replace Image" dialog to post sidebar.

This commit is contained in:
evazion
2017-03-31 13:37:57 -05:00
parent df7cd67a7d
commit 4e841c4ea5
5 changed files with 49 additions and 0 deletions

View File

@@ -55,6 +55,8 @@
<li><%= link_to "Expunge", expunge_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "expunge", :data => {:confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to delete this post?"} %></li>
<% end %>
<li><%= link_to "Replace Image", replace_moderator_post_post_path(:post_id => post.id), :id => "replace-image" %></li>
<li id="mobile-version-list"><%= link_to "Mobile version", mobile_post_path(post) %></li>
<% end %>
<% end %>