{% load i18n %}
{% load wiki %}
{# Generate a summary for 'content' object #}
<div class="post post-{{content.model_name}}" id="post-{{content.id}}">
    <div class="summary-thumbnail">
        {% with content.owner_for_display as account %}
            {% include 'account/medium.thumbnail.alone.html' %}
        {% endwith %}
    </div>
    <div class="entry">
        <div class="content-actions">
            {% include 'actions/content_summary.part.html' %}
        </div>
        <div class="entry-main">
            <div class="publisher">
                <a href="{{ content.owner_for_display.get_absolute_url }}">
                    {{ content.owner_for_display.title }}
                </a>
                {% if not content.owner_for_display.id == content.publisher_id %}
                <a class="publisher" href="{{ content.publisher.get_absolute_url }}">&raquo; {{ content.publisher.title }}</a>
                {% endif %}
            </div>
            <span class="headline">
                {% if content.detail_link %}
                    <div class="summary-content">
                        <div class="headline-content">
                            <a href="{{ content.get_absolute_url }}">
                                {{ content.title_or_description|wiki }}
                            </a>
                        </div>
                {% else %}
                    {{ content.title_or_description|wiki }}
                {% endif %}
                {% if content.detail_link %}
                        {{ content.description|wiki }}
                    </div>
                {% endif %}
            </span>
        </div>
        {% if content.model_name != 'Comment' %}
            <div class="public-actions">
                <ul class="comment-actions">
                  {% include 'content/summary.comments.part.html' %}
                </ul>
                <ul class="sharing-actions">
                  {% include 'sharing/summary.part.html' %}
                </ul>
            </div>
        {% endif %}
        <div class="postmetadata">
            <ul>
                {% if not content.owner_for_display == content.owner %}
                    <li class="author">{{ content.owner.title }}</li>
                {% endif %}
                <li class="date">{{ content.created_at|timesince }}</li>
                {% if content.language %}<li class="lang">{{ content.language }}</li>{%endif%}
                <li title="{{ content.permissions }}" class="target target-{{ content.permissions }}">&nbsp;</li>

                <!-- {{ content.id }} -->
            </ul>
        </div>
        <div id="view_comments{{ content.id }}" class="comments-container">
            {% with content.last_comments as comments %}
                {% include 'content/comments.part.html' %}
            {% endwith %}
        </div>
    </div>
    <div class="clearfix"><!-- --></div>
</div>
