This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/templates/yuuno/profile/friends.twig

25 lines
986 B
Twig
Raw Normal View History

2016-01-26 18:09:18 +00:00
{% set friends = profile.friends(2)|batch(12) %}
{% set paginationPages = friends %}
2016-02-27 16:46:16 +00:00
{% set paginationUrl %}{{ route('user.profile', profile.id) }}{% endset %}
2016-01-26 18:09:18 +00:00
<div class="new-profile-mode-title">
<h1 class="stylised">Friends</h1>
</div>
<div class="profile-friends">
{% for friend in friends[get.page|default(1) - 1] %}
<div class="friend-container" id="friendslist-friend-{{ friend.id }}">
2016-02-27 16:46:16 +00:00
<a class="friends-list-data clean" href="{{ route('user.profile', friend.id) }}">
<img src="{{ route('file.avatar', friend.id) }}" alt="{{ friend.username }}" class="friends-list-avatar default-avatar-setting" style="width: 150px; height: 150px;" />
2016-01-26 18:09:18 +00:00
<div class="friends-list-name" style="color: {{ friend.colour }};">{{ friend.username }}</div>
</a>
</div>
{% endfor %}
<div class="clear"></div>
2016-01-30 00:18:23 +00:00
</div>
{% if friends|length > 1 %}
<div style="text-align: right;">
{% include 'elements/pagination.twig' %}
</div>
{% endif %}