Switch to unified view
a/views/pages.tpl | b/views/pages.tpl | ||
---|---|---|---|
1 | %q = dict(query) |
1 | %q = dict(query) |
2 | %def page_href(page): |
2 | %def page_href(page): |
3 | %q['page'] = page |
3 | %q['page'] = page |
4 | %return '../results?%s' % urllib.urlencode(q)
|
4 | %return './results?%s' % urllib.urlencode(q) |
5 | %end |
5 | %end |
6 | %if nres > 0: |
6 | %if nres > 0: |
7 | %import math, urllib |
7 | %import math, urllib |
8 | %npages = int(math.ceil(nres/float(config['perpage']))) |
8 | %npages = int(math.ceil(nres/float(config['perpage']))) |
9 | %if npages > 1: |
9 | %if npages > 1: |