diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb
index bd4396543..c4f3d5283 100644
--- a/app/views/posts/partials/show/_options.html.erb
+++ b/app/views/posts/partials/show/_options.html.erb
@@ -2,26 +2,43 @@
<% if post.is_image? %>
<%= resize_image_links(post, CurrentUser.user) %>
<% end %>
+
<% if CurrentUser.is_member? %>
-
<%= link_to "Edit", post_path(post), :id => "side-edit-link" %>
<%= link_to "Favorite", favorites_path(:post_id => post.id), :remote => true, :method => :post, :id => "add-to-favorites" %>
<%= link_to "Unfavorite", favorite_path(post), :remote => true, :method => :delete, :id => "remove-from-favorites" %>
<%= link_to "Pool", "#", :id => "pool" %>
<%= link_to "Translate", "#", :id => "translate", :title => "Shortcut is CTRL+N" %>
+ <%= link_to "Find similar", "http://danbooru.iqdb.org/db-search.php?url=#{post.preview_url}" %>
+
<% unless post.is_status_locked? %>
- <%= link_to "Flag", new_post_flag_path(:post_id => post.id), :id => "flag" %>
- <%= link_to "Appeal", new_post_appeal_path(:post_id => post.id), :id => "appeal" %>
+ <% if !post.is_deleted? %>
+ <%= link_to "Flag", new_post_flag_path(:post_id => post.id), :id => "flag" %>
+ <% end %>
+
+ <% if post.is_flagged? || post.is_deleted? %>
+ <%= link_to "Appeal", new_post_appeal_path(:post_id => post.id), :id => "appeal" %>
+ <% end %>
+
<% if CurrentUser.is_janitor? %>
- <%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :remote => true, :method => :post, :id => "approve" %>
- <%= link_to "Disapprove", moderator_post_disapproval_path(:post_id => post.id), :remote => true, :method => :post, :id => "disapprove" %>
+ <% if post.is_flagged? || post.is_pending? %>
+ <%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :remote => true, :method => :post, :id => "approve" %>
+ <% else %>
+ <%= link_to "Hide from queue", moderator_post_disapproval_path(:post_id => post.id), :remote => true, :method => :post, :id => "disapprove" %>
+ <% end %>
<% end %>
+
<% if CurrentUser.is_moderator? %>
- <%= link_to "Undelete", undelete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "undelete" %>
- <%= link_to "Delete", delete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "delete" %>
+ <% if post.is_deleted? %>
+ <%= link_to "Undelete", undelete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "undelete" %>
+ <% else %>
+ <%= link_to "Delete", delete_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "delete" %>
+ <% end %>
<% end %>
+
<% end %>
<% end %>
+
<% if CurrentUser.is_admin? %>
<%= link_to "Annihilate", annihilate_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "annihilate", :confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to annihilate this post?" %>
<% end %>
-
\ No newline at end of file
+