fixes #2461: Mod queue comments
This commit is contained in:
17
app/views/post_disapprovals/_compact_counts.html.erb
Normal file
17
app/views/post_disapprovals/_compact_counts.html.erb
Normal file
@@ -0,0 +1,17 @@
|
||||
<% if disapprovals.count > 0 %>
|
||||
<% if disapprovals.breaks_rules.count > 0 %>
|
||||
(breaks rules: <%= disapprovals.breaks_rules.count %>)
|
||||
<% end %>
|
||||
|
||||
<% if disapprovals.poor_quality.count > 0 %>
|
||||
(poor quality: <%= disapprovals.poor_quality.count %>)
|
||||
<% end %>
|
||||
|
||||
<% if disapprovals.disinterest.count > 0 %>
|
||||
(no interest: <%= disapprovals.disinterest.count %>)
|
||||
<% end %>
|
||||
|
||||
<% if disapprovals.with_message.any? %>
|
||||
(messages: <%= disapprovals.disinterest.with_message.map(&:message).to_sentence %>)
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -13,5 +13,9 @@
|
||||
<% if disapprovals.disinterest.count > 0 %>
|
||||
<%= disapprovals.disinterest.count %> did not like the post enough to approve it.
|
||||
<% end %>
|
||||
|
||||
<% if disapprovals.with_message.any? %>
|
||||
Messages: <%= disapprovals.with_message.map(&:message).to_sentence %>
|
||||
<% end %>
|
||||
</p>
|
||||
<% end %>
|
||||
@@ -0,0 +1,17 @@
|
||||
<div id="detailed-rejection-dialog" title="Detailed Rejection" style="display: none;">
|
||||
<%= form_tag(moderator_post_disapproval_path, :class => "simple_form", :id => "detailed-rejection-form") do %>
|
||||
<%= hidden_field_tag "post_id", "x" %>
|
||||
|
||||
<p>You can supply a short message to the uploader explaining why you rejected this upload.</p>
|
||||
|
||||
<div class="input">
|
||||
<label>Reason</label>
|
||||
<%= select_tag "reason", options_for_select([["Breaks Rules", "breaks_rules"], ["Poor Quality", "poor_quality"], ["No Interest", "disinterest"]]) %>
|
||||
</div>
|
||||
|
||||
<div class="input">
|
||||
<label>Message</label>
|
||||
<%= text_field_tag "message" %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
Reference in New Issue
Block a user