diff options
author | francis <francis> | 2008-03-06 22:03:44 +0000 |
---|---|---|
committer | francis <francis> | 2008-03-06 22:03:44 +0000 |
commit | 0792a9431f33a47860a3debcdf828f149d291e60 (patch) | |
tree | 6e5a2bf0354d2d2079e1ab29f36eafd7b5f871be | |
parent | da6ab0fbcec800b0e8548048ff7e19e4cbd7f7f7 (diff) |
Fix /list
-rw-r--r-- | app/views/request/_request_listing.rhtml | 2 | ||||
-rw-r--r-- | app/views/request/_request_listing_single.rhtml | 4 | ||||
-rw-r--r-- | todo.txt | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/app/views/request/_request_listing.rhtml b/app/views/request/_request_listing.rhtml index d779d0f74..ebfbc60a4 100644 --- a/app/views/request/_request_listing.rhtml +++ b/app/views/request/_request_listing.rhtml @@ -2,7 +2,7 @@ None found. <% else %> <% for info_request in info_requests %> - <%= render :partial => 'request/request_listing_single', :locals => { :info_request => info_request, :highlight_words => [] } %> + <%= render :partial => 'request/request_listing_single', :locals => { :info_request => info_request } %> <% end %> <% end %> diff --git a/app/views/request/_request_listing_single.rhtml b/app/views/request/_request_listing_single.rhtml index 6a9a31100..e680fb362 100644 --- a/app/views/request/_request_listing_single.rhtml +++ b/app/views/request/_request_listing_single.rhtml @@ -1,3 +1,7 @@ +<% if @highlight_words.nil? + @highlight_words = [] + end %> + <p class="request_listing"> <%= link_to highlight_words(info_request.title, @highlight_words), request_url(info_request) %> @@ -2,7 +2,6 @@ Search: Add indexing of PDFs and DOCs etc. Date ranges and types and stuff -Highlighting - http://www.quarkruby.com/2007/9/14/advanced-acts_as_solr FOI requests to use to test it |