{% extends "base.html" %} {% load wagtailcore_tags wagtailimages_tags markdown_tags bleach_tags %} {% block body_class %}light-grey-bg{% endblock %} {% block content %}
{% if page.introduction %}

{{ page.introduction|markdown|bleach }}

{% endif %}
{% if subpages.object_list.exists %} {% for subpage in subpages.object_list %} {% if subpage.icon %} {% image subpage.icon fill-180x180 class="listing__image" %} {% else %}
{% endif %} {% if subpage.can_open %}

{% if subpage.is_open %} {% if subpage.deadline %} Next deadline: {{ subpage.deadline|date:"M j, Y" }} {% else %} Open {% endif %} {% else %} Closed {% endif %}

{% endif %}

{{ subpage.listing_title|default:subpage.title }}

{% if subpage.listing_summary or subpage.introduction %}
{{ subpage.listing_summary|default:subpage.introduction|truncatechars_html:155 }}
{% endif %}
{% endfor %} {% include "includes/pagination.html" with paginator_page=subpages %} {% else %} {# no items on this page #} {% endif %}
{% endblock %}