2015-09-05 16:11:04 +00:00
{ % extends 'global/master.tpl' % }
2015-09-07 20:53:47 +00:00
{ % set rankTitle % }
2015-10-14 19:35:16 +00:00
{ % if page . notfound % } Not found { % else % } { % if not page . active % } All members { % else % } { { page . ranks [ page . active ] . name ( true ) } } { % endif % } { % endif % }
2015-09-07 20:53:47 +00:00
{ % endset % }
{ % set rankDescription % }
2015-10-14 19:35:16 +00:00
{ % if page . notfound % } The requested rank could not be found! { % else % } { % if not page . active % } The entire user list. { % else % } { { page . ranks [ page . active ] . description } } { % endif % } { % endif % }
2015-09-07 20:53:47 +00:00
{ % endset % }
{ % block title % } { { rankTitle } } { % endblock % }
2015-09-05 16:11:04 +00:00
{ % block content % }
2015-09-07 20:53:47 +00:00
<div class="headerNotify" style="margin-bottom: 1px;">
2015-10-18 19:06:30 +00:00
<h1 style=" { % if page . active % } text-shadow: 0 0 5px { { page . ranks [ page . active ] . colour } } ; color: { { page . ranks [ page . active ] . colour } } ; { % else % } text-shadow: 0 0 5px #555; { % endif % } "> { { rankTitle } } </h1>
2015-09-07 20:53:47 +00:00
<h3> { { rankDescription } } </h3>
2015-08-21 22:07:45 +00:00
</div>
<div class="membersPage" style="min-height: 500px;">
2015-10-18 19:06:30 +00:00
<div class="dropDown" style="margin: 0 auto; font-size: 1.5em; line-height: 1.5em; height: 30px;">
2015-04-27 21:07:48 +00:00
<div class="dropDownInner" style="float: left; color: #FFF;">
2015-09-05 16:11:04 +00:00
<a class="dropDownDesc">Rank:</a>
<a href=" { % if page . page and page . sort % } { { urls . format ( 'MEMBERLIST_SORT_PAGE' , [ page . sort , ( page . page + 1 ) ] ) } } { % elseif page . sort % } { { urls . format ( 'MEMBERLIST_SORT' , [ page . sort ] ) } } { % elseif page . page % } { { urls . format ( 'MEMBERLIST_PAGE' , [ ( page . page + 1 ) ] ) } } { % else % } { { urls . format ( 'MEMBERLIST_INDEX' ) } } { % endif % } " { % if not page . active % } class="dropDownSelected" { % endif % } >All members</a>
2015-04-27 21:07:48 +00:00
{ % for rank in page . ranks % }
2015-10-14 19:35:16 +00:00
{ % if not rank . hidden or ( rank . hidden and page . active = = rank . id ) % }
<a href=" { % if page . sort % } { { urls . format ( 'MEMBERLIST_SORT_RANK' , [ page . sort , rank . id ] ) } } { % else % } { { urls . format ( 'MEMBERLIST_RANK' , [ rank . id ] ) } } { % endif % } " style="color: { { rank . colour } } ;" { % if page . active = = rank . id % } class="dropDownSelected" { % endif % } > { { rank . name ( true ) } } </a>
2015-08-21 22:07:45 +00:00
{ % endif % }
2015-04-27 21:07:48 +00:00
{ % endfor % }
2015-09-05 16:11:04 +00:00
</div>
<div class="dropDownInner" style="float: left;">
<a class="dropDownDesc">View:</a>
2015-04-27 21:07:48 +00:00
{ % for sort in page . sorts % }
2015-09-05 16:11:04 +00:00
<a href=" { % if page . active and page . page % } { { urls . format ( 'MEMBERLIST_ALL' , [ sort , page . active , ( page . page + 1 ) ] ) } } { % elseif page . active % } { { urls . format ( 'MEMBERLIST_SORT_RANK' , [ sort , page . active ] ) } } { % elseif page . page % } { { urls . format ( 'MEMBERLIST_SORT_PAGE' , [ sort , ( page . page + 1 ) ] ) } } { % else % } { { urls . format ( 'MEMBERLIST_SORT' , [ sort ] ) } } { % endif % } " { % if page . sort = = sort % } class="dropDownSelected" { % endif % } > { { sort | capitalize } } </a>
2015-04-27 21:07:48 +00:00
{ % endfor % }
2015-09-05 16:11:04 +00:00
</div>
2015-04-27 21:07:48 +00:00
</div>
2015-09-07 20:53:47 +00:00
{ % if not page . users | length % }
<h1 class="stylised" style="margin: 2em 0;">This rank has no members!</h1>
{ % elseif not page . notfound % }
<div class="membersPageList { { page . sort } } ">
{ % if page . sort = = page . sorts [ 2 ] % }
<table>
<thead>
<tr>
<th>No.</th>
<th>Username</th>
<th>Registered</th>
<th>Last online</th>
<th>User title</th>
<th>Country</th>
</tr>
</thead>
<tfoot>
<tr>
<th>No.</th>
<th>Username</th>
<th>Registered</th>
<th>Last online</th>
<th>User title</th>
<th>Country</th>
</tr>
</tfoot>
{ % for count , user in page . users [ page . page ] % }
<tbody>
<tr>
<td>
# { { page . active ? count + 1 : count } }
</td>
<td>
2015-10-14 19:35:16 +00:00
<a href=" { { urls . format ( 'USER_PROFILE' , [ user . data . user_id ] ) } } " class="default" style="font-weight: bold; color: { { user . colour } } ; text-shadow: 0 0 5px { { user . colour } } ;"> { { user . data . username } } </a>
2015-09-07 20:53:47 +00:00
</td>
2015-10-14 19:35:16 +00:00
<td title=" { { user . data . user_registered | date ( sakura . dateFormat ) } } ">
{ { user . elapsed . joined } }
2015-09-07 20:53:47 +00:00
</td>
2015-10-14 19:35:16 +00:00
<td title=" { % if user . data . user_last_online = = 0 % } Never logged in. { % else % } { { user . data . user_last_online | date ( sakura . dateFormat ) } } { % endif % } ">
{ % if user . data . user_last_online = = 0 % } <i>Never logged in.</i> { % else % } { { user . elapsed . lastOnline } } { % endif % }
2015-09-07 20:53:47 +00:00
</td>
<td>
2015-10-14 19:35:16 +00:00
{ { user . userTitle } }
2015-09-07 20:53:47 +00:00
</td>
<td>
2015-10-14 19:35:16 +00:00
<img src=" { { sakura . contentPath } } /images/flags/ { { user . country . short | lower } } .png" alt=" { % if user . country . short | lower = = 'xx' % } ? { % else % } { { user . country . long } } { % endif % } " title=" { % if user . country . short | lower = = 'xx' % } Unknown { % else % } { { user . country . long } } { % endif % } " />
2015-09-07 20:53:47 +00:00
</td>
</tr>
</tbody>
{ % endfor % }
</table>
{ % else % }
{ % for user in page . users [ page . page ] % }
2015-10-14 19:35:16 +00:00
<a href=" { { urls . format ( 'USER_PROFILE' , [ user . data . user_id ] ) } } "> { # These comment tags are here to prevent the link extending too far
#}<div class="userBox" id="u { { user . data . user_id } } "> { #
#}<img src=" { { sakura . contentPath } } /pixel.png" alt=" { { user . data . username } } " style="background: url(' { { urls . format ( 'IMAGE_AVATAR' , [ user . data . user_id ] ) } } ') no-repeat center / contain;" /> { #
#}<span class="userBoxUserName" style="color: { { user . colour } } ;"> { #
#} { { user . data . username } } { #
2015-09-07 20:53:47 +00:00
#}</span> { #
#}</div> { #
#}</a>
{ % endfor % }
{ % endif % }
</div>
2015-04-27 21:07:48 +00:00
{ % endif % }
{ % if page . users | length > 1 % }
2015-09-07 20:53:47 +00:00
<div class="pagination">
{ % if page . page > 0 % }
<a href=" { % if page . sort and page . active % } { { urls . format ( 'MEMBERLIST_ALL' , [ page . sort , page . active , page . page ] ) } } { % elseif page . sort % } { { urls . format ( 'MEMBERLIST_SORT_PAGE' , [ page . sort , page . page ] ) } } { % elseif page . active % } { { urls . format ( 'MEMBERLIST_RANK_PAGE' , [ page . active , page . page ] ) } } { % else % } { { urls . format ( 'MEMBERLIST_PAGE' , [ page . page ] ) } } { % endif % } "><span class="fa fa-step-backward"></span></a>
{ % endif % }
{ % for count , navpage in page . users % }
<a href=" { % if page . sort and page . active % } { { urls . format ( 'MEMBERLIST_ALL' , [ page . sort , page . active , ( count + 1 ) ] ) } } { % elseif page . sort % } { { urls . format ( 'MEMBERLIST_SORT_PAGE' , [ page . sort , ( count + 1 ) ] ) } } { % elseif page . active % } { { urls . format ( 'MEMBERLIST_RANK_PAGE' , [ page . active , ( count + 1 ) ] ) } } { % else % } { { urls . format ( 'MEMBERLIST_PAGE' , [ ( count + 1 ) ] ) } } { % endif % } " { % if count = = page . page % } class="current" { % endif % } > { { count + 1 } } </a>
{ % endfor % }
{ % if page . page + 1 < page . users | length % }
<a href=" { % if page . sort and page . active % } { { urls . format ( 'MEMBERLIST_ALL' , [ page . sort , page . active , ( page . page + 2 ) ] ) } } { % elseif page . sort % } { { urls . format ( 'MEMBERLIST_SORT_PAGE' , [ page . sort , ( page . page + 2 ) ] ) } } { % elseif page . active % } { { urls . format ( 'MEMBERLIST_RANK_PAGE' , [ page . active , ( page . page + 2 ) ] ) } } { % else % } { { urls . format ( 'MEMBERLIST_PAGE' , [ ( page . page + 2 ) ] ) } } { % endif % } "><span class="fa fa-step-forward"></span></a>
{ % endif % }
</div>
2015-04-27 21:07:48 +00:00
{ % endif % }
</div>
2015-09-05 16:11:04 +00:00
{ % endblock % }