xml.instruct! :xml, :version => "1.0" 
xml.rss :version => "2.0" do
  xml.channel do
  	if @current_category
			xml.title @current_category.title_translations[I18n.locale.to_s]
		else
			xml.title t('news_bulletin.campus_news')
		end
    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 url_for(:action=>"show", :controller=>"panel/news/front_end/news_bulletins", :id=>news_bulletin ,:only_path=>false)
        xml.guid url_for(:action=>"show", :controller=>"panel/news/front_end/news_bulletins", :id=>news_bulletin ,:only_path=>false)
        xml.fb_share generate_fb_url(news_bulletin, "news")
      end
    end
  end
end