{# @description The people who follow a person or an object, in a card headed with their count. #} {# @prop object:text | description:"The person or object whose followers to list." #} {# @prop plain:boolean | description:"Leave out the card's heading, where the page already names the list." #} {% load i18n mvp_community_activity %} {% followers_of object as followers %} {% with count=followers.count people=followers|slice:":8" %} {% blocktrans count counter=count asvar heading %}{{ counter }} follower{% plural %}{{ counter }} followers{% endblocktrans %} {% if people %} {% for person in people %} {% firstof person.get_full_name person as name %}
{% endfor %}
{% if count > 8 %}{% blocktrans with more=count|add:"-8" %}and {{ more }} more{% endblocktrans %}{% endif %} {% else %} {% trans "Nobody follows this yet." %} {% endif %}
{% endwith %}