From a790c0c4824cafc84883d608868424436b9abc1a Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Tue, 4 Dec 2012 10:29:30 +0800 Subject: [PATCH] add content for announcement rss --- .../announcement/front_end/bulletins/index.rss.builder | 1 + .../panel/announcement/front_end/bulletins/show.rss.builder | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/index.rss.builder b/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/index.rss.builder index 40698bfc..2a5d7f85 100644 --- a/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/index.rss.builder +++ b/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/index.rss.builder @@ -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") diff --git a/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/show.rss.builder b/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/show.rss.builder index c4ddacfa..34fb7a98 100644 --- a/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/show.rss.builder +++ b/vendor/built_in_modules/announcement/app/views/panel/announcement/front_end/bulletins/show.rss.builder @@ -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 \ No newline at end of file +end