diff options
| author | hukl <contact@smyck.org> | 2012-02-18 21:16:22 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2012-02-18 21:16:22 +0100 |
| commit | 2cded5c6ae21877748199575e2b8525f033a837f (patch) | |
| tree | 0881a70184bfa0d40a0756e7c97387742366430c /app/views | |
| parent | 220c6f7bdfc0da33d4284495d6954b2b89f224f6 (diff) | |
handle missing node gracefully
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/search/_search_result.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/search/_search_result.html.erb b/app/views/search/_search_result.html.erb index b480f89..a1c0274 100644 --- a/app/views/search/_search_result.html.erb +++ b/app/views/search/_search_result.html.erb | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | <div class="article_partial"> | 1 | <div class="article_partial"> |
| 2 | <h2 class="headline"><%= link_to node.head.title, content_path(node.unique_path) %></h2> | 2 | <h2 class="headline"><%= link_to ( node.head ? node.head.title : "No title" ), content_path(node.unique_path) %></h2> |
| 3 | <p class="excerpt"><%= node.head.abstract %></p> | 3 | <p class="excerpt"><%= node.head.abstract %></p> |
| 4 | </div> \ No newline at end of file | 4 | </div> \ No newline at end of file |
