refactoring MediaInput

This commit is contained in:
les
2021-07-19 12:15:28 +02:00
parent ab78181538
commit ee6adbd778
5 changed files with 39 additions and 22 deletions

View File

@@ -14,7 +14,7 @@ rss(version='2.0' xmlns:atom="http://www.w3.org/2005/Atom")
| <h4>#{event.title}</h4>
| <strong>#{event.place.name} - #{event.place.address}</strong>
| <small>(#{moment.unix(event.start_datetime).format("dddd, D MMMM HH:mm")})</small><br/>
if (event.media)
if (event.media && event.media.length)
| <img alt="#{event.media[0].name}" src="#{settings.baseurl}/media/#{event.media[0].url}"/>
| <pre>!{event.description}</pre>
| ]]>