{##} {% if category %}

{{ category.name }}

{% for date in category.eventDates|split(',') %} {{- formatUsing('dateReadable', date, 102) -}} {{- not loop.last ? ', ' -}} {% endfor %}
{{ category.description|raw }}
{% endif %} {% if canViewInactive and category.viewable != "Y" %}
{% if category.viewableDate is not empty %} {{ __m('This activity category is not visible to the public, and will be viewable on') }} {{ category.viewableDate|date("M j \\a\\t g:ia") }}.
{% else %} {{ __m('This activity category is not visible to the public, and will be viewable in the future') }}.
{% endif %} {{ __m('Some details seen here may not be finalised. Please do not share the activity details until access is open to all users.') }}
{% elseif category.accessOpenDate and category.accessCloseDate %}
{% if "now"|date("U") > category.endDate|date("U") %} {{ __m('This activity category ended on') }} {{ category.endDate|date("M j") }} {% elseif "now"|date("U") < category.accessOpenDate|date("U") %} {{ __m('Sign up opens on') }} {{ category.accessOpenDate|date("M j \\a\\t g:ia") }} {% elseif "now"|date("U") > category.accessCloseDate|date("U") %} {{ __m('Sign up closed on') }} {{ category.accessCloseDate|date("M j \\a\\t g:ia") }} {% else %} {{ __m('Sign up is currently open, and will close on') }} {{ category.accessCloseDate|date("M j \\a\\t g:ia") }} {% endif %}
{% endif %} {% if activities is not empty %}
{% for activity in activities %}
{% if activity.headerImage %} {% else %}
{% endif %}

{{ activity.name }}

{% endfor %}
{% else %}
{% include 'components/blankSlate.twig.html' with {blankSlate: __("There's nothing here yet. Check back soon!")} %}
{% endif %}