Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/views/default/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/index.html')
-rw-r--r--views/default/index.html36
1 files changed, 28 insertions, 8 deletions
diff --git a/views/default/index.html b/views/default/index.html
index 455f564..c2f692d 100644
--- a/views/default/index.html
+++ b/views/default/index.html
@@ -48,18 +48,38 @@
{{pass}}
<center>
<ul id="navlist">
-{{for count in range(pages):}}
- {{if count+1 == page:}}
- <li>{{=str(page)}}</li>
+{{if page != 1:}}
+ {{if profile == None:}}
+ <li><a href = {{="index.html?page="+str(1)+";sort="+sort+";favorites"+str(show_favorites)}}> < </a></li>
+ {{pass}}
+ {{if profile != None:}}
+ <li><a href = {{="index.html?page="+str(1)+";sort="+sort+";profile="+profile.username+";favorites"+str(show_favorites)}}> < </a></li>
{{pass}}
- {{if count+1 != page:}}
- {{if profile == None:}}
- <li><a href = {{="index.html?page="+str(count+1)+";sort="+sort+";favorites"+str(show_favorites)}}>{{ = str(count+1)}}</a></li>
+ {{pass}}
+{{if page > 5:}}<li>...</li>{{pass}}
+{{for count in range(pages):}}
+ {{if count+1 < page+5 and count+1 > page-5:}}
+ {{if count+1 == page:}}
+ <li>{{=str(page)}}</li>
{{pass}}
- {{if profile != None:}}
- <li><a href = {{="index.html?page="+str(count+1)+";sort="+sort+";profile="+profile.username+";favorites"+str(show_favorites)}}>{{ = str(count+1)}}</a></li>
+ {{if count+1 != page:}}
+ {{if profile == None:}}
+ <li><a href = {{="index.html?page="+str(count+1)+";sort="+sort+";favorites"+str(show_favorites)}}>{{ = str(count+1)}}</a></li>
+ {{pass}}
+ {{if profile != None:}}
+ <li><a href = {{="index.html?page="+str(count+1)+";sort="+sort+";profile="+profile.username+";favorites"+str(show_favorites)}}>{{ = str(count+1)}}</a></li>
+ {{pass}}
{{pass}}
{{pass}}
{{pass}}
+{{if page+5 < pages:}}<li>...</li>{{pass}}
+{{if page != pages:}}
+ {{if profile == None:}}
+ <li><a href = {{="index.html?page="+str(pages)+";sort="+sort+";favorites"+str(show_favorites)}}> > </a></li>
+ {{pass}}
+ {{if profile != None:}}
+ <li><a href = {{="index.html?page="+str(pages)+";sort="+sort+";profile="+profile.username+";favorites"+str(show_favorites)}}> > </a></li>
+ {{pass}}
+ {{pass}}
</ul>
</center>