aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/request/show.rhtml2
-rw-r--r--app/views/request/similar.rhtml6
2 files changed, 5 insertions, 3 deletions
diff --git a/app/views/request/show.rhtml b/app/views/request/show.rhtml
index 181bb27e3..f8cca83c0 100644
--- a/app/views/request/show.rhtml
+++ b/app/views/request/show.rhtml
@@ -25,7 +25,7 @@
<p><%= link_to "More similar requests", request_similar_url(@info_request) %></p>
<% end %>
<% end %>
- <!-- <%= @xapian_similar.important_terms.join(" ") %> -->
+ <!-- Important terms: <%= @xapian_similar.important_terms.join(" ") %> -->
<!--<h2>Blog posts about this request</h2>
<p>...
diff --git a/app/views/request/similar.rhtml b/app/views/request/similar.rhtml
index 8bcceab19..4efb237d8 100644
--- a/app/views/request/similar.rhtml
+++ b/app/views/request/similar.rhtml
@@ -1,8 +1,10 @@
-<% @title = "Requests similar to '" + h(@info_request.title) + "'" %>
+<% @title = "Requests similar to '" + h(@info_request.title) + "'" %>
<h1><%="Requests similar to '" + request_link(@info_request) + "'"%></h1>
+<!-- Important terms: <%= @xapian_object.important_terms.join(" ") %> -->
+
<% if @xapian_object.results.empty? %>
- <p>No requests made yet.</p>
+ <p>No similar requests found.</p>
<% else %>
<p class="subtitle">
<%= @xapian_object.matches_estimated %> in total