add content for announcement rss
This commit is contained in:
parent
80c17c9718
commit
4a8878132e
|
@ -12,6 +12,7 @@ xml.rss :version => "2.0" do
|
|||
xml.item do
|
||||
xml.title bulletin.title_translations[I18n.locale.to_s]
|
||||
xml.pubDate bulletin.postdate.to_s(:rfc822)
|
||||
xml.description bulletin.text_translations[I18n.locale.to_s]
|
||||
xml.link url_for(:action=>"show", :controller=>"panel/announcement/front_end/bulletins", :id=>bulletin ,:only_path=>false)
|
||||
xml.guid url_for(:action=>"show", :controller=>"panel/announcement/front_end/bulletins", :id=>bulletin ,:only_path=>false)
|
||||
xml.fb_share generate_fb_url(bulletin, "announcement")
|
||||
|
|
|
@ -8,12 +8,12 @@ xml.rss :version => "2.0" do
|
|||
end
|
||||
xml.link url_for(:action=>"index", :controller=>"panel/announcement/front_end/bulletins",:format=> :rss,:only_path=>false,:inner=>true)
|
||||
xml.item do
|
||||
xml.title @bulletin.title
|
||||
xml.description @bulletin.text
|
||||
xml.title @bulletin.title_translations[I18n.locale.to_s]
|
||||
xml.description @bulletin.text_translations[I18n.locale.to_s]
|
||||
xml.pubDate @bulletin.postdate.to_s(:rfc822)
|
||||
xml.link url_for(:action=>"show", :controller=>"panel/announcement/front_end/bulletins", :id=>@bulletin ,:format=> :rss,:only_path=>false,:inner=>true)
|
||||
xml.guid url_for(:action=>"show", :controller=>"panel/announcement/front_end/bulletins", :id=>@bulletin ,:only_path=>false)
|
||||
end
|
||||
# end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue