mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
[bug] projects RSS feed fails to render
This commit is contained in:
parent
718d163d13
commit
85f4182b2f
@ -1,5 +1,7 @@
|
||||
# Changelog Fab Manager
|
||||
|
||||
- Fix a bug: projects RSS feed fails to render
|
||||
|
||||
## v4.0.1 2019 June 17
|
||||
|
||||
- Fix a bug: migration 20190523140823 may not run if an admin was deleted
|
||||
|
@ -3,7 +3,7 @@
|
||||
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.title "#{t('app.public.projects_list.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'
|
||||
@ -15,7 +15,7 @@ xml.rss version: '2.0' do
|
||||
xml.pubDate project.created_at.strftime('%F %T')
|
||||
xml.title project.name
|
||||
xml.link root_url + '#!/projects/' + project.slug
|
||||
xml.author project.author.profile.full_name
|
||||
xml.author project.author&.user&.profile&.full_name
|
||||
xml.description project.description
|
||||
xml.enclosure url: root_url + project.project_image.attachment.large.url, length: project.project_image.attachment.large.size, type: project.project_image.attachment.content_type if project.project_image
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user