change for NCCU entry site
This commit is contained in:
parent
a579e16109
commit
0ecb4eca46
|
@ -6,14 +6,14 @@ xml.rss :version => "2.0" do
|
||||||
else
|
else
|
||||||
xml.title t('announcement.announcement')
|
xml.title t('announcement.announcement')
|
||||||
end
|
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
|
for bulletin in @bulletins
|
||||||
xml.item do
|
xml.item do
|
||||||
xml.title bulletin.title_translations[I18n.locale.to_s]
|
xml.title bulletin.title_translations[I18n.locale.to_s]
|
||||||
xml.pubDate bulletin.postdate.to_s(:rfc822)
|
xml.pubDate bulletin.postdate.to_s(:rfc822)
|
||||||
xml.link 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 panel_announcement_front_end_bulletin_path(bulletin, :rss)
|
xml.guid url_for(:action=>"show", :controller=>"panel/announcement/front_end/bulletins", :id=>bulletin ,:format=> :rss,:only_path=>false,:inner=>true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,14 +6,13 @@ xml.rss :version => "2.0" do
|
||||||
else
|
else
|
||||||
xml.title t('announcement.announcement')
|
xml.title t('announcement.announcement')
|
||||||
end
|
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.item do
|
||||||
xml.title @bulletin.title
|
xml.title @bulletin.title
|
||||||
xml.description @bulletin.text
|
xml.description @bulletin.text
|
||||||
xml.pubDate @bulletin.postdate.to_s(:rfc822)
|
xml.pubDate @bulletin.postdate.to_s(:rfc822)
|
||||||
xml.link 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 panel_announcement_front_end_bulletin_path(@bulletin, :rss)
|
xml.guid url_for(:action=>"show", :controller=>"panel/announcement/front_end/bulletins", :id=>@bulletin ,:format=> :rss,:only_path=>false,:inner=>true)
|
||||||
end
|
end
|
||||||
# end
|
# end
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,15 +6,15 @@ xml.rss :version => "2.0" do
|
||||||
else
|
else
|
||||||
xml.title t('news.campus_news')
|
xml.title t('news.campus_news')
|
||||||
end
|
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
|
for news_bulletin in @news_bulletins
|
||||||
xml.item do
|
xml.item do
|
||||||
xml.title news_bulletin.title_translations[I18n.locale.to_s]
|
xml.title news_bulletin.title_translations[I18n.locale.to_s]
|
||||||
xml.description news_bulletin.subtitle_translations[I18n.locale.to_s]
|
xml.description news_bulletin.subtitle_translations[I18n.locale.to_s]
|
||||||
xml.pubDate news_bulletin.postdate.to_s(:rfc822)
|
xml.pubDate news_bulletin.postdate.to_s(:rfc822)
|
||||||
xml.link 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 panel_news_front_end_news_bulletin_path(news_bulletin, :rss)
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,15 +6,15 @@ xml.rss :version => "2.0" do
|
||||||
else
|
else
|
||||||
xml.title t('news.campus_news')
|
xml.title t('news.campus_news')
|
||||||
end
|
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
|
# for news_bulletin in @news_bulletins
|
||||||
xml.item do
|
xml.item do
|
||||||
xml.title @news_bulletin.title
|
xml.title @news_bulletin.title
|
||||||
xml.description @news_bulletin.text
|
xml.description @news_bulletin.text
|
||||||
xml.pubDate @news_bulletin.postdate.to_s(:rfc822)
|
xml.pubDate @news_bulletin.postdate.to_s(:rfc822)
|
||||||
xml.link 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 panel_news_front_end_news_bulletin_path(@news_bulletin, :rss)
|
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
|
# end
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue