diff options
Diffstat (limited to 'views/default/friends.html')
-rw-r--r-- | views/default/friends.html | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/views/default/friends.html b/views/default/friends.html index 4dacbaa..d7a6288 100644 --- a/views/default/friends.html +++ b/views/default/friends.html @@ -15,13 +15,23 @@ {{pass}} </table> <ul id="navlist"> +{{if page != 1:}} + <li><a href = {{="friends.html?page="+str(1)}}> < </a></li> + {{pass}} +{{if page > 5:}}<li>...</li>{{pass}} {{for count in range(pages):}} - {{if count+1 == page:}} - <li>{{=str(page)}}</li> - {{pass}} - {{if count+1 != page:}} - <li><a href = {{="admin.html?page="+str(count+1)}}>{{ = str(count+1)}}</a></li> + {{if count+1 < page+5 and count+1 > page-5:}} + {{if count+1 == page:}} + <li>{{=str(page)}}</li> + {{pass}} + {{if count+1 != page:}} + <li><a href = {{="friends.html?page="+str(count+1)}}>{{ = str(count+1)}}</a></li> + {{pass}} {{pass}} {{pass}} +{{if page+5 < pages:}}<li>...</li>{{pass}} +{{if page != pages:}} + <li><a href = {{="friends.html?page="+str(pages)}}> < </a></li> + {{pass}} </ul> </center> |