diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:15:28 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2009-07-10 19:15:28 -0400 |
commit | 35b666224a05fbd249b1c51a0a48fb95b246fe9a (patch) | |
tree | bfce966ce040dd849e8cc35a012d18f7632ad6b1 /templates/paginator.html | |
parent | 5b45e526c74faf55110ff0afdcba19797d7e0f4d (diff) | |
download | askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.gz askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.tar.bz2 askbot-35b666224a05fbd249b1c51a0a48fb95b246fe9a.zip |
adding all files again
Diffstat (limited to 'templates/paginator.html')
-rw-r--r-- | templates/paginator.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/paginator.html b/templates/paginator.html new file mode 100644 index 00000000..c5e51a81 --- /dev/null +++ b/templates/paginator.html @@ -0,0 +1,39 @@ +<!-- paginator.html --> +{% spaceless %} +{% load i18n %} +{% if is_paginated %} +<div class="paginator"> +{% if has_previous %}<span class="prev"><a href="{{base_url}}page={{ previous }}{{ extend_url }}" title="{% trans "previous" %}"> +« {% trans "previous" %}</a></span>{% endif %} + +{% if not in_leading_range %} + {% for num in pages_outside_trailing_range %} + <span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" >{{ num }}</a></span> + {% endfor %} + ... +{% endif %} + +{% for num in page_numbers %} + {% ifequal num page %} + {% ifequal pages 1 %} + {% else %} + <span class="curr" title="{% trans "current page" %}">{{ num }}</span> + {% endifequal %} + {% else %} + <span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" title="{% trans "page number " %}{{ num }}{% trans "number - make blank in english" %}">{{ num }}</a></span> + {% endifequal %} +{% endfor %} + +{% if not in_trailing_range %} + ... + {% for num in pages_outside_leading_range reversed %} + <span class="page"><a href="{{base_url}}page={{ num }}{{ extend_url }}" title="{% trans "page number " %}{{ num }}{% trans "number - make blank in english" %}">{{ num }}</a></span> + {% endfor %} +{% endif %} + +{% if has_next %}<span class="next"><a href="{{base_url}}page={{ next }}{{ extend_url }}" title="{% trans "next page" %}">{% trans "next page" %} »</a></span>{% endif %} +</div> +{% endif %} + +{% endspaceless %} +<!-- end paginator.html --> |