mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 08:32:23 +01:00
fix: use online_locations instead of place address for online events in rss feed
This commit is contained in:
parent
9f8d137d30
commit
0f047a264e
1 changed files with 6 additions and 3 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue