This commit is contained in:
albert
2012-01-06 18:32:54 -05:00
parent 1b337afe37
commit 01989af213

View File

@@ -16,7 +16,9 @@
<% if CurrentUser.is_janitor? && !post.disapproved_by?(CurrentUser.user) %> <% if CurrentUser.is_janitor? && !post.disapproved_by?(CurrentUser.user) %>
<div class="quick-mod"> <div class="quick-mod">
<%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :method => :post, :remote => true, :class => "btn" %> <% unless post.is_status_locked? %>
<%= link_to "Approve", moderator_post_approval_path(:post_id => post.id), :method => :post, :remote => true, :class => "btn" %>
<% end %>
<%= link_to "Disapprove", moderator_post_disapproval_path(:post_id => post.id), :method => :post, :remote => true, :class => "btn" %> <%= link_to "Disapprove", moderator_post_disapproval_path(:post_id => post.id), :method => :post, :remote => true, :class => "btn" %>
</div> </div>
<% end %> <% end %>