{##} {% if category %}

{{ category.name }}

{% for date in category.eventDates|split(',') %} {{- formatUsing('dateReadable', date, 102) -}} {{- not loop.last ? ', ' -}} {% endfor %}
{% endif %} {% if canViewInactive and category.viewable != "Y" %}
{{ __m('This activity is not visible to the public.') }} {% if category.viewableDate %} {{ __m('It will be viewable on {date}', {'date': (category.viewableDate|date("M j \\a\\t g:ia")) }) }} {% endif %}
{{ __m('Some details seen here may not be finalised. Please do not share the activity details until access is open to all users.') }}
{% endif %} {% include 'activityPhotos.twig.html' %}

{{ activity.name }}

{{ activity.description|raw }}
{% if (isEnrolled or isStaff or canEdit) and not isPastEvent and activity.blocks is not empty %} {% for block in activity.blocks %} {% if block.type == 'Main' %} {% if loop.first %}
{% endif %}

{{ block.title }}

{{ block.content|raw }}
{% endif %} {% endfor %} {% endif %}
{% if signUpIsOpen and signUpAccess and canSignUp %} {% else %}
{% if signUpIsOpen and (not signUpAccess or not canSignUp) %} {% if activity.yearGroups is not empty %} {{ __m('Sign up is open for current') }}
{{ activity.yearGroups|replace({'Y0':'Y'})|split(',')|join(', ', ' and ') }} {{ __m('students') }} {% else %} {{ __m('Sign up is open until') }} {{ category.accessCloseDate|date("M j \\a\\t g:ia") }} {% endif %} {% elseif "now"|date("U") > category.endDate|date("U") %} {{ __m('This event ended on') }} {{ category.endDate|date("M j") }} {% elseif not signUpAccess %} {% if activity.yearGroups is not empty %} {{ __m('This activity is for current') }}
{{ activity.yearGroups|replace({'Y0':'Y'})|split(',')|join(', ', ' and ') }} {{ __m('students') }} {% else %} {{ __m('Sign up is not available') }} {% endif %} {% elseif "now"|date("U") < category.accessOpenDate|date("U") %} {{ __m('Sign up opens') }} {{ 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 not available yet') }} {% endif %}
{% endif %}

{{ __m('Cost') }}

{% if activity.cost %} {{ formatUsing('currency', activity.cost, false, 0) }} {%- if activity.costType -%}
{{ activity.costType }} {% if activity.costStatus %}  ({{ activity.costStatus }}) {% endif %}
{% endif %} {% else %} {{ __m('Free') }} {% endif %}

{{ __m('Time') }}

{{ activity.dayOfWeek }}
{{ activity.timeStart|date("g:ia") }} - {{ activity.timeEnd|date("g:ia") }}
{% if activity.space or activity.locationExternal %}

{{ __m('Location') }}

{{ activity.space ? activity.space : activity.locationExternal }}
{% endif %} {% if activity.provider %}

{{ __m('Provider') }}

{{ activity.provider }}
{% endif %} {% if (isEnrolled or isStaff or canEdit) and not isPastEvent and activity.blocks is not empty %} {% for block in activity.blocks %} {% if block.type == 'Sidebar' %}

{{ block.title }}

{{ block.content|raw }}
{% endif %} {% endfor %} {% endif %} {% for index, photo in activity.photos|slice(6) %} {% if photo.filePath %} {% endif %} {% endfor %}