Sha256: f8f950dd2952889217a98fa7955139664e7b9506dbccc34d86b3fe062bc45985
Contents?: true
Size: 1.32 KB
Versions: 9
Compression:
Stored size: 1.32 KB
Contents
xml.instruct! :xml, :version=>"1.0" xml.rss('version' => "2.0", 'xmlns:opensearch' => "http://a9.com/-/spec/opensearch/1.1/", 'xmlns:dc' => "http://purl.org/dc/elements/1.1/", 'xmlns:atom' => "http://www.w3.org/2005/Atom"){ xml.channel{ xml.title t('news_post.library_group_news_post', library_group_name: @library_group.display_name.localize) xml.link news_posts_url xml.description "Next-L Enju, an open source integrated library system developed by Project Next-L" xml.language @locale.to_s xml.ttl "60" xml.tag! "atom:link", rel: 'self', href: news_posts_url(format: :rss) xml.tag! "atom:link", rel: 'alternate', href: root_url xml.tag! "atom:link", rel: 'search', :type => 'application/opensearchdescription+xml', href: page_opensearch_url unless params[:query].blank? xml.tag! "opensearch:startIndex", @news_posts.offset + 1 xml.tag! "opensearch:itemsPerPage", @news_posts.per_page end if @news_posts @news_posts.each do |news_post| xml.item do xml.title(news_post.title) xml.description(news_post.body) # rfc822 xml.pubDate h(news_post.created_at.utc.iso8601) xml.link news_post_url(news_post) xml.guid news_post_url(news_post), :isPermaLink => "true" end end end } }
Version data entries
9 entries across 9 versions & 1 rubygems