{% extends "jmbo/inclusion_tags/modelbase_detail.html" %}
{% load jmbo_template_tags pagination_tags %}

{% block content %}
    {% jmbocache 3600 'object-detail-inclusion' object.id object.modified request.page %}
        {% with object.content_pages as content_pages %}
            {% autopaginate content_pages 1 %}

            {% if '<img' not in object.content %}
                {% if object.image %}
                    <div class="image">
                        <img src="{{ object.image_detail_url }}" />
                        {% if object.image_attribution %}
                            <div class="attribution">{{ object.image_attribution }}</div>
                        {% endif %}
                    </div>
                {% endif %}
            {% endif %}
            <div class="content">
                <a name="jmbo-post"></a>
                {{ content_pages.0|safe }}
            </div>
            {% paginate hashtag='#jmbo-post' %}
        {% endwith %}
    {% endjmbocache %}
{% endblock %}
