forked from e621ng/e621ng
[Posts] Add link to quickly see who disapproved the post
Also move your own disapproval below the others, which just makes sense.
This commit is contained in:
parent
f721675219
commit
42b345b864
@ -10,12 +10,6 @@
|
||||
<strong><%= tag.a "Approve", href: '#', class: 'approve-post-link button btn-neutral', 'data-pid': post.id %></strong>
|
||||
</div>
|
||||
<% end %>
|
||||
<% @our_disapproval = post.disapprovals.select {|x| x.user_id == CurrentUser.id }.first %>
|
||||
<% if @our_disapproval.present? %>
|
||||
<div>
|
||||
You are currently disapproving of this post for the following reason: <strong><%= @our_disapproval.reason %></strong>
|
||||
</div>
|
||||
<% end %>
|
||||
<div>
|
||||
<%= link_to "Human Only", "#", class: "delete-with-reason-link button btn-neutral", data: {prompt: "being human only", reason: "Irrelevant to site. (Human only)", post_id: post.id} %> |
|
||||
<%= link_to "Artistic Standards", "#", class: "delete-with-reason-link button btn-neutral", data: {prompt: "artistic standards", reason: "Does not meet minimum quality standards. (Artistic)", post_id: post.id} %> |
|
||||
|
@ -1,6 +1,6 @@
|
||||
<% if CurrentUser.can_approve_posts? && disapprovals.length > 0 %>
|
||||
<p>
|
||||
It has been reviewed by <%= pluralize disapprovals.length, "approver" %>.
|
||||
It has been reviewed by <%= link_to pluralize(disapprovals.length, "approver"), moderator_post_disapprovals_path(search: { post_id: post.id }) %>.
|
||||
|
||||
<% if disapprovals.map(&:reason).grep("borderline_quality").count > 0 %>
|
||||
<%= disapprovals.map(&:reason).grep("borderline_quality").count %> believe it doesn't meet the quality standards.
|
||||
@ -13,5 +13,12 @@
|
||||
<% if disapprovals.map(&:message).any?(&:present?) %>
|
||||
Messages: <%= disapprovals.map(&:message).select(&:present?).map { |msg| format_text(msg, inline: true) }.to_sentence.html_safe %>.
|
||||
<% end %>
|
||||
|
||||
<% @our_disapproval = disapprovals.select {|x| x.user_id == CurrentUser.id }.first %>
|
||||
<% if @our_disapproval.present? %>
|
||||
<div>
|
||||
You are currently disapproving of this post for the following reason: <strong><%= @our_disapproval.reason %></strong>
|
||||
</div>
|
||||
<% end %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
Loading…
Reference in New Issue
Block a user