{% load i18n leprikon_tags sekizai_tags thumbnail %}
{{ object.display_name }} {% for group in object.all_groups %} {{ group.name }} {% endfor %} {% if object.price %} {{ object.price | currency }}{% if object.school_year_division.period_name %} / {{ object.school_year_division.period_name }}{% endif %} {% endif %} {% if request.user.is_staff or request.leader in object.all_leaders %} {% trans 'edit' %} {% endif %}
{% if object.photo %} {{ object.photo.name }} {% endif %} {% if object.start_date %}{# event #}

{% trans 'Start' %}: {{ object.start_date }}{% if objec.start_time %}, {{ objec.start_time }}{% endif %} {% if object.start_date != object.end_date or objec.end_time %}
{% trans 'End' %}: {% if object.start_date != object.end_date %} {{ object.end_date }}{% if objec.end_time %}, {{ objec.end_time }}{% endif %} {% else %} {{ objec.end_time }} {% endif %} {% endif %} {% if object.place %}
{% trans 'Place' %}: {{ object.place }} {% endif %}

{% elif object.all_times or object.place %}{# course #}

{% if object.all_times %}{% trans 'Time' %}: {{ object.all_times | comma_separated }}{% endif %} {% if object.all_times and object.place %}
{% endif %} {% if object.place %}{% trans 'Place' %}: {{ object.place }}{% endif %}

{% endif %} {{ object.description | safe }} {% if object.all_age_groups %}

{% if object.all_age_groups|length > 1 %}{% trans 'Age groups' %}{% else %}{% trans 'Age group' %}{% endif %}: {{ object.all_age_groups|comma_separated }}

{% endif %} {% if object.all_target_groups %}

{% if object.all_target_groups|length > 1 %}{% trans 'Target groups' %}{% else %}{% trans 'Target group' %}{% endif %}: {{ object.all_target_groups|comma_separated }}

{% endif %} {% if object.all_leaders %}

{% blocktrans count counter=object.all_leaders|length %}Led by{% plural %}Led by{% endblocktrans %} {{ object.get_leaders_list }}

{% endif %} {% if object.subject_type.all_attachments or object.all_attachments %}

{% trans 'Attachments' %}: {% for attachment in object.subject_type.all_attachments %} {{ attachment.file }} {% endfor %} {% for attachment in object.all_attachments %} {{ attachment.file }} {% endfor %}

{% endif %} {% if object.page %}

{% trans 'More information' %}: {{ object.page.get_title }}

{% endif %}

{% registration_links object %}

{% if request.user.is_staff or request.leader in object.all_leaders %} {% endif %}
{% include 'leprikon/static/ekko-lightbox.html' %} {% addtoblock 'js' %} {% endaddtoblock %}