summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2012-02-18 21:30:49 +0100
committerhukl <contact@smyck.org>2012-02-18 21:30:49 +0100
commit16ffafb4ebbc7118b50a09205666ffafda05ad6b (patch)
tree9d83bb8e92189e4d9d0c6f0305299ff10159458b
parent2cded5c6ae21877748199575e2b8525f033a837f (diff)
graceful handling of weird search results
-rw-r--r--app/views/search/_search_result.html.erb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/views/search/_search_result.html.erb b/app/views/search/_search_result.html.erb
index a1c0274..14898a2 100644
--- a/app/views/search/_search_result.html.erb
+++ b/app/views/search/_search_result.html.erb
@@ -1,4 +1,6 @@
1<% if node.head %>
1<div class="article_partial"> 2<div class="article_partial">
2 <h2 class="headline"><%= link_to ( node.head ? node.head.title : "No title" ), content_path(node.unique_path) %></h2> 3 <h2 class="headline"><%= link_to node.head.title, content_path(node.unique_path) %></h2>
3 <p class="excerpt"><%= node.head.abstract %></p> 4 <p class="excerpt"><%= node.head.abstract %></p>
4</div> \ No newline at end of file 5</div>
6<% end %> \ No newline at end of file