{% comment %}
Display a list of the accounts we're showing tweets for.

Expects:
* account_list - All the accounts we're showing tweets for.
* count - The number of tweets.
* list_type - 'recent' (default) or 'favorites'.
{% endcomment %}

{% load l10n %}

<div class="card">
    <div class="card-block">
        <p class="card-text">
            {{ count|localize }} Tweet{{ count|pluralize }}
            {% if list_type and list_type == 'favorites' %}
                liked
            {% endif %}
            {% if account_list|length == 1 %}
                by <a href="{{ account_list.0.get_absolute_url }}">{{ account_list.0 }}</a>
            {% else %}
                by {{ account_list|length }}&nbsp;user{{ account_list|length|pluralize }}
            {% endif %}
        </p>
    </div>

    {% if account_list|length > 1 %}
        <ul class="list-group list-group-flush">
            {% for account in account_list %}
                <li class="list-group-item">
                    <a href="{{ account.get_absolute_url }}">
                        {{ account }}
                    </a>
                </li>
            {% endfor %}
        </ul>
    {% endif %}
</div>

