{%extends "base/page.html"%}
{%load pgmarkdown%}
{%block title%}{{title}}{%endblock%}
{%block contents%}

<h1>{{title}} <i class="fas fa-calendar-alt"></i></h1>
<p>
<em><strong>Note:</strong> The PostgreSQL Global Development Group does not endorse any
events run by third parties. No guarantee of the quality of events is offered
whatsoever.</em>
</p>
<p>
  <img src="/media/img/PostgreSQL_Badge1.svg" class="community" alt="PostgreSQL Community Event">
  indicates that an event is recognised under the <a href="/about/policies/conferences/">community event guidelines</a> and is directly helping the PostgreSQL community.
</p>
{%for event in events %}
<hr class="eventseparator">
<div>
  {% if event.badged %}
    <img src="/media/img/PostgreSQL_Badge1.svg" class="community" alt="PostgreSQL Community Event">
  {% endif %}
  <a href="/about/event/{{event.title|slugify}}-{{event.id}}/">{{event.title}}</a>
</div>
<div>Date: <strong class="event-highlight">{{event.displaydate|safe}}</strong></div>
<div>Location: <strong class="event-highlight">{{event.locationstring}}</strong></div>
{%if event.language%}<div>Language: <strong class="event-highlight">{{event.language}}</strong></div>{%endif%}
<div class="newseventwrap">
{{event.summary|markdown|striptags}}
</div>
{%endfor%}

<p><a class="btn btn-primary" href="/about/{{ archive|yesno:"events,eventarchive"}}/">{{ archive|yesno:"Upcoming,Past"}} events</a></p>

<p>
  Events are organized by PostgreSQL related associations or third parties. If you wish to list an event related to
  PostgreSQL, you may <a href="/account/events/new/">submit</a> your own events for consideration after logging in.
</p>
{%endblock%}
