mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-13 23:48:55 +01:00
24 lines
687 B
Plaintext
24 lines
687 B
Plaintext
|
#encoding: UTF-8
|
||
|
|
||
|
xml.instruct! :xml, version: '1.0'
|
||
|
xml.rss version: '2.0' do
|
||
|
xml.channel do
|
||
|
xml.title "#{t('app.public.projects_list.the_fablab_projects')} - #{@fab_name}"
|
||
|
xml.description t('app.public.home.latest_documented_projects')
|
||
|
xml.author @fab_name
|
||
|
xml.link root_url + '#!/projects'
|
||
|
xml.language I18n.locale.to_s
|
||
|
|
||
|
@projects.each do |project|
|
||
|
xml.item do
|
||
|
xml.guid project.id
|
||
|
xml.pubDate project.created_at.strftime('%F %T')
|
||
|
xml.title project.name
|
||
|
xml.link root_url + '#!/projects/' + project.slug
|
||
|
xml.author project.author.first_name
|
||
|
xml.description project.description
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|