2015-08-10 20:04:22 +00:00
{ % if friends | length % }
<div class="friends-list">
{ % for friend in friends [ page . currentPage ] % }
<div class="friend-container" id="friend- { { friend . user . id } } ">
<a class="friends-list-data clean" href="/u/ { { friend . user . id } } ">
<img src="/a/ { { friend . user . id } } " alt=" { { friend . user . username } } " class="friends-list-avatar default-avatar-setting" style="width: 150px; height: 150px;" />
<div class="friends-list-name" style="color: { % if friend . user . name_colour % } { { friend . user . name_colour } } { % else % } { { friend . rank . colour } } { % endif % } ;"> { { friend . user . username } } </div>
</a>
<div class="friends-list-actions">
2015-08-23 22:08:36 +00:00
<a class="remove fill fa fa-remove" title="Remove friend" href="/friends?remove= { { friend . user . id } } &session= { { php . sessionid } } &time= { { php . time } } &redirect=/settings/listing/friends&direct=true"></a>
2015-07-31 21:18:14 +00:00
<div class="clear"></div>
</div>
2015-08-10 20:04:22 +00:00
</div>
{ % endfor % }
2015-06-22 17:44:14 +00:00
<div class="clear"></div>
</div>
2015-08-10 20:04:22 +00:00
{ % if friends | length > 1 % }
<div>
<div class="pagination" style="float: right;">
{ % if page . currentPage > 0 % }
2015-08-23 22:08:36 +00:00
<a href="/settings/friends/listing/p { { page . currentPage } } "><span class="fa fa-step-backward"></span></a>
2015-08-10 20:04:22 +00:00
{ % endif % }
{ % for id , npage in friends % }
2015-08-23 22:08:36 +00:00
<a href="/settings/friends/listing/p { { id + 1 } } " { % if id = = page . currentPage % } class="current" { % endif % } > { { id + 1 } } </a>
2015-08-10 20:04:22 +00:00
{ % endfor % }
{ % if page . currentPage + 1 < friends | length % }
2015-08-23 22:08:36 +00:00
<a href="/settings/friends/listing/p { { page . currentPage + 2 } } "><span class="fa fa-step-forward"></span></a>
2015-08-10 20:04:22 +00:00
{ % endif % }
</div>
<div class="clear"></div>
</div>
{ % endif % }
{ % else % }
<h1 class="stylised" style="margin: 2em auto; text-align: center;">You don't have any friends yet!</h1>
{ % endif % }