aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/track/atom_feed.atom.builder
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/track/atom_feed.atom.builder')
-rw-r--r--app/views/track/atom_feed.atom.builder10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/track/atom_feed.atom.builder b/app/views/track/atom_feed.atom.builder
index 627c53d11..bc7a48de2 100644
--- a/app/views/track/atom_feed.atom.builder
+++ b/app/views/track/atom_feed.atom.builder
@@ -2,16 +2,16 @@ atom_feed do |feed|
feed.title(@track_thing.params[:title_in_rss])
for search_result in @search_results
- feed.entry(search_result) do |entry|
+ feed.entry(search_result[:model]) do |entry|
# Get the HTML content from the same partial template as website search does
content = ''
- if search_result.class.to_s == 'InfoRequestEvent'
- content += render :partial => 'request/request_listing_via_event', :locals => { :event => search_result, :info_request => search_result.info_request }
+ if search_result[:model].class.to_s == 'InfoRequestEvent'
+ content += render :partial => 'request/request_listing_via_event', :locals => { :event => search_result[:model], :info_request => search_result[:model].info_request }
else
- content = "<p><strong>Unknown search result type " + search_result.class.to_s + "</strong></p>"
+ content = "<p><strong>Unknown search result type " + search_result[:model].class.to_s + "</strong></p>"
end
# Pull out the heading as separate item, from the partial template
- content.match(/(<a href="[^>]*">(.*)<\/a>\s+<br>)/)
+ content.match(/(<span class="head">\s+<a href="[^>]*">(.*)<\/a>\s+<\/span>)/)
heading = $1
heading_text = $2
content.sub!(heading, "")