aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-09-22 16:44:21 +0000
committerfrancis <francis>2008-09-22 16:44:21 +0000
commit3a8966eb13e316713cf12c1172bdc0de41dc00b3 (patch)
tree6569114eb53368c6532f9b91edebe881c43814e3
parent4e403141730c40e439be8c5d2044b0e66056e579 (diff)
Enable disabling of similar search.
-rw-r--r--app/views/request/show.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml
index c244fabcc..02eb820e6 100644
--- a/app/views/request/show.rhtml
+++ b/app/views/request/show.rhtml
@@ -20,7 +20,7 @@
<%= link_to 'Join others with a pledge', "http://www.pledgebank.com"%>
</div>
- <% if @xapian_similar.results.size > 0 %>
+ <% if !@xapian_similar.nil? && @xapian_similar.results.size > 0 %>
<h2>Similar requests</h2>
<% for result in @xapian_similar.results %>
<%= render :partial => 'request/request_listing_via_event', :locals => { :event => result[:model], :info_request => result[:model].info_request } %>
@@ -28,8 +28,8 @@
<% if @xapian_similar_more %>
<p><%= link_to "More similar requests", request_similar_url(@info_request) %></p>
<% end %>
+ <!-- Important terms: <%= @xapian_similar.important_terms.join(" ") %> -->
<% end %>
- <!-- Important terms: <%= @xapian_similar.important_terms.join(" ") %> -->
<!--<h2>Blog posts about this request</h2>
<p>...