aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-01-08 09:44:42 +0000
committerSeb Bacon <seb.bacon@gmail.com>2012-01-08 09:44:42 +0000
commitf428c61cc05668c2d0acf50a7b0093a4275cc158 (patch)
tree17e1824263cfbc006a7dc58f41e8bc16797e5723
parenta5f6dc2d8af9a12c05c1b6e3897292f2eaee3ab0 (diff)
Show excerpts rather than titles on home page. Fixes issue #322.
-rw-r--r--app/views/general/frontpage.rhtml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/general/frontpage.rhtml b/app/views/general/frontpage.rhtml
index 35751b6a4..da45a8c37 100644
--- a/app/views/general/frontpage.rhtml
+++ b/app/views/general/frontpage.rhtml
@@ -60,7 +60,7 @@
<%= public_body_link(event.info_request.public_body) %> <%= _('answered a request about') %>
<%=link_to h(event.info_request.title), request_url(event.info_request)%>
<%= _('{{length_of_time}} ago', :length_of_time => time_ago_in_words(event.described_at)) %>
- <p class="excerpt" onclick="document.location.href='<%=request_url(event.info_request)%>'"><%= excerpt(event.info_request.title, "", 200) %></p>
+ <p class="excerpt" onclick="document.location.href='<%=request_url(event.info_request)%>'"><%= excerpt(event.search_text_main(true), "", 200) %></p>
</li>
<% end %>
</ul>