From e67dec55815b4922510751a12859b63c735e5b06 Mon Sep 17 00:00:00 2001 From: Albert Yi Date: Thu, 29 Dec 2016 16:59:08 -0800 Subject: [PATCH] indicate on missing searches report whether a wiki page exists --- app/views/explore/posts/missed_searches.html.erb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/views/explore/posts/missed_searches.html.erb b/app/views/explore/posts/missed_searches.html.erb index eec9b7eb1..c74349eaf 100644 --- a/app/views/explore/posts/missed_searches.html.erb +++ b/app/views/explore/posts/missed_searches.html.erb @@ -5,14 +5,20 @@ - - + + + <% @search_service.each_search do |tags, count| %> + <% end %>
TagsCountTagsWikiCount
<%= link_to tags, posts_path(:tags => tags) %> + <% unless WikiPage.titled(tags).exists? %> + N + <% end %> + <%= count.to_i %>