diff options
author | luxagraf <sng@luxagraf.net> | 2010-10-23 19:46:20 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2010-10-23 19:46:20 -0400 |
commit | c59a2a69fb38b92b6c45bcf7431d2b1a3c5dce3c (patch) | |
tree | 2fc44ca867839d5e591e21467b6e4526f7a9f080 /lib/grappelli/templates/admin/pagination.html | |
parent | ed77da873e675f02f12cbab9be27f342f825444b (diff) |
added grappelli, filebrowser, chunks and tagging to lcal repo
Diffstat (limited to 'lib/grappelli/templates/admin/pagination.html')
-rw-r--r-- | lib/grappelli/templates/admin/pagination.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/grappelli/templates/admin/pagination.html b/lib/grappelli/templates/admin/pagination.html new file mode 100644 index 0000000..ecd0859 --- /dev/null +++ b/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 |