From 9b40016895c94fdec6b00f20088116e45de699d0 Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 24 Feb 2017 19:11:48 -0600 Subject: [PATCH] /posts/NNN, modqueue: allow dtext in disapproval reasons. --- app/views/post_disapprovals/_compact_counts.html.erb | 4 ++-- app/views/post_disapprovals/_counts.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/post_disapprovals/_compact_counts.html.erb b/app/views/post_disapprovals/_compact_counts.html.erb index 5bb3a6b12..9e08a9745 100644 --- a/app/views/post_disapprovals/_compact_counts.html.erb +++ b/app/views/post_disapprovals/_compact_counts.html.erb @@ -12,6 +12,6 @@ <% end %> <% if disapprovals.with_message.any? %> - (messages: <%= disapprovals.disinterest.with_message.map(&:message).to_sentence %>) + (messages: <%= disapprovals.map(&:message).select(&:present?).map { |msg| format_text(msg, ragel: true, inline: true) }.to_sentence.html_safe %>) <% end %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/post_disapprovals/_counts.html.erb b/app/views/post_disapprovals/_counts.html.erb index e6ec12ead..612e4f7e7 100644 --- a/app/views/post_disapprovals/_counts.html.erb +++ b/app/views/post_disapprovals/_counts.html.erb @@ -15,7 +15,7 @@ <% end %> <% if disapprovals.with_message.any? %> - Messages: <%= disapprovals.with_message.map(&:message).to_sentence %> + Messages: <%= disapprovals.map(&:message).select(&:present?).map { |msg| format_text(msg, ragel: true, inline: true) }.to_sentence.html_safe %>. <% end %>

-<% end %> \ No newline at end of file +<% end %>