fnp
/
django-pagination.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a92e388
)
add hashtag to next/prev links
author
Carl Meyer
<carl@oddbird.net>
Mon, 8 Mar 2010 22:30:02 +0000
(17:30 -0500)
committer
Carl Meyer
<carl@oddbird.net>
Mon, 8 Mar 2010 22:30:02 +0000
(17:30 -0500)
pagination/templates/pagination/pagination.html
patch
|
blob
|
history
diff --git
a/pagination/templates/pagination/pagination.html
b/pagination/templates/pagination/pagination.html
index
d5a94b8
..
fe566a8
100644
(file)
--- a/
pagination/templates/pagination/pagination.html
+++ b/
pagination/templates/pagination/pagination.html
@@
-2,7
+2,7
@@
{% load i18n %}
<div class="pagination">
{% if page_obj.has_previous %}
{% load i18n %}
<div class="pagination">
{% if page_obj.has_previous %}
- <a href="?page={{ page_obj.previous_page_number }}{{ getvars }}" class="prev">‹‹ {% trans "previous" %}</a>
+ <a href="?page={{ page_obj.previous_page_number }}{{ getvars }}
{{ hashtag }}
" class="prev">‹‹ {% trans "previous" %}</a>
{% else %}
<span class="disabled prev">‹‹ {% trans "previous" %}</span>
{% endif %}
{% else %}
<span class="disabled prev">‹‹ {% trans "previous" %}</span>
{% endif %}
@@
-18,7
+18,7
@@
{% endif %}
{% endfor %}
{% if page_obj.has_next %}
{% endif %}
{% endfor %}
{% if page_obj.has_next %}
- <a href="?page={{ page_obj.next_page_number }}{{ getvars }}" class="next">{% trans "next" %} ››</a>
+ <a href="?page={{ page_obj.next_page_number }}{{ getvars }}
{{ hashtag }}
" class="next">{% trans "next" %} ››</a>
{% else %}
<span class="disabled next">{% trans "next" %} ››</span>
{% endif %}
{% else %}
<span class="disabled next">{% trans "next" %} ››</span>
{% endif %}