{{ 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 %}