extratonal.org/templates/event.html
2024-01-28 20:58:01 +00:00

17 lines
927 B
HTML

{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% from "macros/list.html" import list %}
{% block body %}
<div class="left">
{{ list(this.parent.children,this) }}
</div>
<div class="right">
{% set img = this.attachments.images.get(this.flyer) %}
{% if img %}<div class="eventflyer"><img class="eventflyer" src="./{{ img|url|replace(".png","")|replace(".jpg","")|replace(".jpeg","")}}-medium.webp" loading="lazy" ></div>{% else %}<div class="filler"></div>{% endif %}
<a class="nav-link boxhead shadow" href={{ this.url }}>{{ this.title }}</a>
<div class="eventmeta"><b>Date: </b>{{ this.start_date|datetimeformat('yyyy/MM/dd H:mm')}} - {{ this.end_date|datetimeformat('yyyy/MM/dd H:mm')}}</div>
<div class="eventmeta"><b>Location: </b><a href="https://www.openstreetmap.org/#map=19/{{this.latlon}}" >{{ this.location}}</a></div>
{{ this.content }}
</div>
{% endblock %}