fix: use online_locations instead of place address for online events in rss feed

This commit is contained in:
lesion 2024-01-05 22:49:33 +01:00
parent 9f8d137d30
commit 0f047a264e
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -15,9 +15,12 @@ rss(version='2.0' xmlns:atom="http://www.w3.org/2005/Atom")
category #{tag.tag || tag}
description
| <![CDATA[
| <h4>#{event.title}</h4>
| <strong>#{event.place.name} - #{event.place.address}</strong>
| <small>(#{unixFormat(event.start_datetime,"EEEE, d MMMM HH:mm")})</small><br/>
| <h3>#{event.title}</h3>
if (event.place.name === 'online')
| <strong>online - <a href="#{event.online_locations[0]}">#{event.online_locations[0]}</a></strong>
else
| <strong>#{event.place.name} - #{event.place.address}</strong>
| <br/><small>(#{unixFormat(event.start_datetime,"EEEE, d MMMM HH:mm")})</small><br/>
if (event.media && event.media.length)
| <img alt="#{event.media[0].name || ''}" src="#{settings.baseurl}/media/#{event.media[0].url}"/>
| !{event.description}