summaryrefslogtreecommitdiff
path: root/app/lib/grappelli/templates/admin/pagination.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2012-09-22 22:27:04 -0400
committerluxagraf <sng@luxagraf.net>2012-09-22 22:27:04 -0400
commitefb623af0bcb47d510501c282e1326b11343a29c (patch)
tree3a35fb19f5eba3b219c65277a5fb712cbe9604ac /app/lib/grappelli/templates/admin/pagination.html
parent0b481fd7931c2ae20ca21f89a87f2ba6a6c01e10 (diff)
site reorg
Diffstat (limited to 'app/lib/grappelli/templates/admin/pagination.html')
-rw-r--r--app/lib/grappelli/templates/admin/pagination.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/lib/grappelli/templates/admin/pagination.html b/app/lib/grappelli/templates/admin/pagination.html
new file mode 100644
index 0000000..ecd0859
--- /dev/null
+++ b/app/lib/grappelli/templates/admin/pagination.html
@@ -0,0 +1,30 @@
+{% load admin_list i18n %}
+
+{% spaceless %}
+ <div class="module pagination">
+ <ul class="pagination">
+ {% if cl.result_count != cl.full_result_count %}
+ <li class="results"><span>
+ {% blocktrans count cl.result_count as counter %}1 result{% plural %}{{ counter }} results{% endblocktrans %}
+ </span></li>
+ {% endif %}
+ <li class="results">
+ {% if cl.result_count != cl.full_result_count or cl.show_all %}
+ <a href="?{% if cl.is_popup %}pop=1{% endif %}" class="total">{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</a>
+ {% else %}
+ <span>{% blocktrans with cl.full_result_count as full_result_count %}{{ full_result_count }} total{% endblocktrans %}</span>
+ {% endif %}
+ </li>
+ {% if pagination_required %}
+ {% for i in page_range %}
+ {% ifequal i "." %}
+ <li class="separator"><span>...</span></li>
+ {% else %}
+ <li>{% paginator_number cl i %}</li>
+ {% endifequal %}
+ {% endfor %}
+ {% endif %}
+ {% if show_all_url %}<li class="showall"><a href="{{ show_all_url }}">{% trans 'Show all' %}</a></li>{% endif %}
+ </ul><br clear="all" />
+ </div>
+{% endspaceless %} \ No newline at end of file