{% extends "jmbo/inclusion_tags/modelbase_detail.html" %} {% load cache i18n humanize foundry_tags show_tags %} {% block content %} {% cache 3600 'object-detail-inclusion' object.id object.modified %}
{% if object.repeat == 'does_not_repeat' %} {% blocktrans with start=object.start|date:"j F Y H:i" end=object.end|date:"j F Y H:i" %}{{ start }} to {{ end }}{% endblocktrans %} {% elif object.repeat == 'daily' %} {% blocktrans with start=object.start|date:"H:i" end=object.end|date:"H:i" %}Daily from {{ start }} to {{ end }}{% endblocktrans %} {% elif object.repeat == 'weekdays' %} {% blocktrans with start=object.start|date:"H:i" end=object.end|date:"H:i" %}Weekdays from {{ start }} to {{ end }}{% endblocktrans %} {% elif object.repeat == 'weekends' %} {% blocktrans with start=object.start|date:"H:i" end=object.end|date:"H:i" %}Weekends from {{ start }} to {{ end }}{% endblocktrans %} {% elif object.repeat == 'weekdays' %} {% blocktrans with start=object.start|date:"H:i" end=object.end|date:"H:i" weekday=object.start|date:"l" %}Every {{ weekday }} from {{ start }} to {{ end }}{% endblocktrans %} {% elif object.repeat == 'monthly_by_day_of_month' %} {% blocktrans with day=object.start|date:"j" %}The {{ day }}th of every month{% endblocktrans %} {% endif %}
{% with object.get_primary_contributors as contributors %} {% if contributors %}
{% trans "With" %} {% for obj in contributors %}{% if forloop.counter0 %}, {% endif %}{{ obj.title }}{% endfor %}
{% endif %} {% endwith %} {% endcache %} {% with request.GET.page as page %} {% if related_items %} {% cache 300 'object-detail-inclusion-related' object.id object.modified page category %} {% endcache %} {% endif %} {% if is_about %} {% cache 300 'object-detail-inclusion-about' object.id object.modified page %} {% if object.image %}
{% endif %}
{{ object.content|safe }}
{% endcache %} {% endif %} {% if is_polls %} {% cache 300 'object-detail-inclusion-polls' object.id object.modified page %} {% get_relation_by_type_list 'poll.poll' for object as 'polls' 'both' %}
{% listing polls style='VerticalThumbnail' identifier='show-detail-polls' %}
{% endcache %} {% endif %} {% if is_galleries %} {% cache 300 'object-detail-inclusion-galleries' object.id object.modified page %} {% get_relation_by_type_list 'gallery.gallery' for object as 'galleries' 'both' %}
{% listing galleries style='VerticalThumbnail' identifier='show-detail-galleries' %}
{% endcache %} {% endif %} {% endwith %} {% endblock %}