{% set friends = user.friends(-1)|batch(12) %} {% set paginationPages = friends %} {% set paginationUrl %}{{ urls.format('SETTING_MODE', ['friends', 'requests']) }}{% endset %} {% block css %} {% endblock %} {% if friends|length %}
{% for friend in friends[get.page|default(1) - 1] %}
{{ friend.username }}
{{ friend.username }}
{% endfor %}
{% if friends|length > 1 %}
{% include 'elements/pagination.twig' %}
{% endif %} {% else %}

You don't have any pending requests!

{% endif %}