fixes #2438: Flagged posts cannot be approved from post page
This commit is contained in:
@@ -23,9 +23,13 @@
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if post.is_pending? %>
|
||||
<% if post.is_pending? || post.is_flagged? %>
|
||||
<div class="ui-corner-all ui-state-highlight notice notice-pending" id="pending-approval-notice">
|
||||
This post is pending approval (<%= link_to "learn more", wiki_pages_path(:title => "about:mod_queue") %>)
|
||||
<% if post.is_pending? %>
|
||||
This post is pending approval (<%= link_to "learn more", wiki_pages_path(:title => "about:mod_queue") %>)
|
||||
<% else %>
|
||||
This post was flagged and is pending approval (<%= link_to "learn more", wiki_pages_path(:title => "about:mod_queue") %>)
|
||||
<% end %>
|
||||
|
||||
<% if CurrentUser.can_approve_posts? && !post.disapproved_by?(CurrentUser.user) %>
|
||||
<div class="quick-mod">
|
||||
|
||||
@@ -118,11 +118,11 @@
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<div id="flag-dialog" title="Flag post" style="display: none;">
|
||||
<div id="flag-dialog" class="prose" title="Flag post" style="display: none;">
|
||||
<%= render "post_flags/new" %>
|
||||
</div>
|
||||
|
||||
<div id="appeal-dialog" title="Appeal post" style="display: none;">
|
||||
<div id="appeal-dialog" class="prose" title="Appeal post" style="display: none;">
|
||||
<%= render "post_appeals/new" %>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user