change for NCCU entry site

This commit is contained in:
Matthew K. Fu JuYuan 2012-09-18 10:54:11 +08:00
parent a579e16109
commit 0ecb4eca46
4 changed files with 12 additions and 13 deletions

View File

@ -6,14 +6,14 @@ xml.rss :version => "2.0" do
else
xml.title t('announcement.announcement')
end
xml.link panel_announcement_front_end_bulletins_path(:rss)
xml.link url_for(:action=>"index", :controller=>"panel/announcement/front_end/bulletins",:format=> :rss,:only_path=>false,:inner=>true)
for bulletin in @bulletins
xml.item do
xml.title bulletin.title_translations[I18n.locale.to_s]
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)
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 ,:format=> :rss,:only_path=>false,:inner=>true)
end
end
end

View File

@ -6,14 +6,13 @@ xml.rss :version => "2.0" do
else
xml.title t('announcement.announcement')
end
xml.link panel_announcement_front_end_bulletins_path(:rss)
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.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)
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 ,:format=> :rss,:only_path=>false,:inner=>true)
end
# end
end

View File

@ -6,15 +6,15 @@ xml.rss :version => "2.0" do
else
xml.title t('news.campus_news')
end
xml.link panel_news_front_end_news_bulletins_path(:rss)
xml.link url_for(:action=>"index", :controller=>"panel/news/front_end/news_bulletins" ,:format=> :rss,:only_path=>false,:inner=>true)
for news_bulletin in @news_bulletins
xml.item do
xml.title news_bulletin.title_translations[I18n.locale.to_s]
xml.description news_bulletin.subtitle_translations[I18n.locale.to_s]
xml.pubDate news_bulletin.postdate.to_s(:rfc822)
xml.link panel_news_front_end_news_bulletin_path(news_bulletin, :rss)
xml.guid panel_news_front_end_news_bulletin_path(news_bulletin, :rss)
xml.link url_for(:action=>"show", :controller=>"panel/news/front_end/news_bulletins", :id=>news_bulletin ,:format=> :rss,:only_path=>false,:inner=>true)
xml.guid url_for(:action=>"show", :controller=>"panel/news/front_end/news_bulletins", :id=>news_bulletin ,:format=> :rss,:only_path=>false,:inner=>true)
end
end
end

View File

@ -6,15 +6,15 @@ xml.rss :version => "2.0" do
else
xml.title t('news.campus_news')
end
xml.link panel_news_front_end_news_bulletins_path(:rss)
xml.link url_for(:action=>"index", :controller=>"panel/news/front_end/news_bulletins" ,:format=> :rss,:only_path=>false,:inner=>true)
# for news_bulletin in @news_bulletins
xml.item do
xml.title @news_bulletin.title
xml.description @news_bulletin.text
xml.pubDate @news_bulletin.postdate.to_s(:rfc822)
xml.link panel_news_front_end_news_bulletin_path(@news_bulletin, :rss)
xml.guid panel_news_front_end_news_bulletin_path(@news_bulletin, :rss)
xml.link url_for(:action=>"show", :controller=>"panel/news/front_end/news_bulletins", :id=>news_bulletin ,:format=> :rss,:only_path=>false,:inner=>true)
xml.guid url_for(:action=>"show", :controller=>"panel/news/front_end/news_bulletins", :id=>news_bulletin ,:format=> :rss,:only_path=>false,:inner=>true)
end
# end
end