Sha256: 2234a68a6b13501d865c22a8e4c4137e87212acd936ee52789b2e20d878e5fc3

Contents?: true

Size: 996 Bytes

Versions: 6

Compression:

Stored size: 996 Bytes

Contents

xml.instruct!

if @entry.nil?
	xml.recommendations
else

@recommendations = @entry.ranked_recommendations(@limit, params[:order] || "mixed", @details)
xml.recommendations(:document_id => @entry.nil? ? "" : @entry.id, :uri => @uri, :title => t("muck.raker.gm_title"), :more_prompt => t("muck.raker.gm_more_prompt"), :direct_link_text => t("muck.raker.direct_link")) do
    @recommendations.results.each do |recommendation|
        xml.recommendation do
            xml.title recommendation["title"]
            xml.collection recommendation["collection"]
            xml.link "http://folksemantic.com/visits/" + recommendation["id"].to_s
            
            if @details == true
	            xml.description recommendation["description"]
	            xml.relevance round(recommendation["score"])
	            xml.published_at recommendation["published_at"]
	            xml.author recommendation["author"]
	        else
	            xml.description ""
	        end
        end
    end
end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
muck-raker-0.1.30 app/views/recommendations/index_real_time.xml.builder
muck-raker-0.1.29 app/views/recommendations/index_real_time.xml.builder
muck-raker-0.1.28 app/views/recommendations/index_real_time.xml.builder
muck-raker-0.1.27 app/views/recommendations/index_real_time.xml.builder
muck-raker-0.1.25 app/views/recommendations/index_real_time.xml.builder
muck-raker-0.1.26 app/views/recommendations/index_real_time.xml.builder