{% load i18n leprikon_tags sekizai_tags thumbnail %}
{{ object.display_name }} {% for group in object.all_groups %} {{ group.name }} {% endfor %} {% if object.price_text %}{{ object.price_text }}{% 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 or object.duration %}{# course or orderable #}

{% if object.all_times %}{% trans 'Time' %}: {{ object.all_times | comma_separated }}{% endif %} {% if object.duration %}{% trans 'Duration' %}: {{ object.duration }}{% endif %} {% if object.all_times or object.duration %}{% if object.place %}
{% endif %}{% 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.public_attachments %}

{% trans 'Attachments' %}: {% for attachment in object.public_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 %}