From 720ebdc8777c2119f984e015d50eceefb8062a16 Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 6 Jan 2012 18:33:58 -0500 Subject: [PATCH] fixes #202 --- app/views/posts/partials/show/_options.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/posts/partials/show/_options.html.erb b/app/views/posts/partials/show/_options.html.erb index e3cfebd5c..1c8de2dbd 100644 --- a/app/views/posts/partials/show/_options.html.erb +++ b/app/views/posts/partials/show/_options.html.erb @@ -10,11 +10,11 @@
  • <%= link_to "Translate", "#", :id => "translate", :title => "Shortcut is CTRL+N" %>
  • <%= 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 CurrentUser.is_janitor? %> + <% if CurrentUser.is_janitor? && !post.is_status_locked? %>
  • <%= 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" %>
  • <% end %> - <% if CurrentUser.is_moderator? %> + <% if CurrentUser.is_moderator? && !post.is_status_locked? %>
  • <%= 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" %>
  • <% end %>