RSS first page

This commit is contained in:
Christophe Vilayphiou committed 2012-08-09 17:04:08 +08:00
1 parent 561d510aa8
commit e256440678
2 files changed
+33 -1

No files matched your search

@@ -0,0 +1,21 @@
xml.instruct! :xml, :version => "1.0"
xml.rss :version => "2.0" do
xml.channel do
if @current_category
xml.title @current_category.i18n_variable[I18n.locale]
else
xml.title t('announcement.announcement')
end
xml.link panel_announcement_front_end_bulletins_path(:rss)
for bulletin in @bulletins
xml.item do
xml.title bulletin.title[I18n.locale]
xml.description bulletin.subtitle[I18n.locale]
xml.pubDate bulletin.postdate.to_s(:rfc822)
xml.link panel_announcement_front_end_bulletin_path(bulletin, :rss)
xml.guid panel_announcement_front_end_bulletin_path(bulletin, :rss)
end
end
end
end