ClickHouse/website/templates/index/events.html

31 lines
1.1 KiB
HTML
Raw Normal View History

{% if events %}
<div id="events" class="bg-light my-0">
<div class="container py-5">
{% if events|length == 1 %}
{% set event = events[0] %}
<h2>Upcoming Event</h2>
<p class="lead">
2020-03-30 08:25:29 +00:00
<a class="text-reset" rel="external nofollow noreferrer" target="_blank"
href="{{ event.signup_link }}">
<span class="text-orange">{{ event.event_date }}</span>&nbsp;
{{ event.event_name }}
</a>
</p>
{% else %}
<h2>Upcoming Events</h2>
<ul class="lead list-unstyled">
{% for event in events %}
<li>
2020-03-30 08:25:29 +00:00
<a class="text-reset" rel="external nofollow noreferrer" target="_blank"
href="{{ event.signup_link }}">
<span class="text-orange">{{ event.event_date }}</span>&nbsp;
{{ event.event_name }}
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
{% endif %}