From 4e44d93a39fffde64bac45f54b83401d3bf4e7fd Mon Sep 17 00:00:00 2001 From: Toks Date: Thu, 11 Apr 2013 12:28:13 -0400 Subject: [PATCH] fixes #1274 --- app/views/posts/partials/show/_options.html.erb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb index 26a0bb9fb..5c05a866b 100644 --- a/app/views/posts/partials/show/_options.html.erb +++ b/app/views/posts/partials/show/_options.html.erb @@ -10,7 +10,9 @@ <% end %>
  • <%= link_to "Find similar", "http://danbooru.iqdb.org/db-search.php?url=http://#{Danbooru.config.hostname}#{post.preview_file_url}" %>
  • - <% unless post.is_status_locked? %> + <% if post.is_status_locked? %> +
  • Status locked
  • + <% else %> <% if !post.is_deleted? && !post.is_pending? %>
  • <%= link_to "Flag", new_post_flag_path(:post_id => post.id), :id => "flag" %>
  • <% end %> @@ -31,10 +33,10 @@ <% else %>
  • <%= link_to "Hide from queue", moderator_post_disapproval_path(:post_id => post.id), :remote => true, :method => :post, :id => "disapprove" %>
  • <% end %> + + <% if CurrentUser.is_admin? %> +
  • <%= link_to "Expunge", expunge_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "expunge", :confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to delete this post?" %>
  • + <% end %> <% end %> <% end %> - - <% if CurrentUser.is_admin? %> -
  • <%= link_to "Expunge", expunge_moderator_post_post_path(:post_id => post.id), :remote => true, :method => :post, :id => "expunge", :confirm => "This will permanently delete this post (meaning the file will be deleted). Are you sure you want to delete this post?" %>
  • - <% end %> \ No newline at end of file