{# Generate a summary for a 'community' object #}
{% load i18n %}
{% load wiki %}
<div class="post" id="post-{{community.id}}">
    {% include 'account/medium.thumbnail.alone.html' %}
        <div class="entry">
            <a class="author" href="{{ account.get_absolute_url }}">{{ account.title }}</a>
            <div class="summary-content">
                {{ account.description|wiki }}
            </div>
            <div class="postmetadata">
                <ul class="network-actions">
                    {% if account.has_pending_invitation %}
                        <li class="action">
                            <a class="tn-button tn-button-default"
                                title="{% blocktrans %}Accept invitation and join group{% endblocktrans %}"
                               href="{% url community_join account.id %}">{% blocktrans %}Accept invitation{% endblocktrans %}</a>
                        </li>
                        <li class="action">
                            <a class="tn-button tn-button-discreet"
                                title="{% blocktrans %}Ignore request to join this group{% endblocktrans %}"
                               href="{% url community_leave account.id %}">{% blocktrans %}Decline invitation{% endblocktrans %}</a>
                        </li>
                    {% else %}
                        {% if account.can_add_to_my_network %}
                            <li class="action">
                                <a href="{% url add_to_my_network account.id %}">{% blocktrans %}Add to my network{% endblocktrans %}</a>
                            </li>
                        {% endif %}
                    {% endif %}
                </ul>
                <ul>
                    <li class="target">
                        {{ account.permissions }}
                    </li>
                    <li class="members">
                        {{ account.members.count }} members
                    </li>
                </ul>
            </div>
        </div>
</div>

