fnp
/
django-pagination.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a0cd75d
)
Use custom template the example app
author
Zygmunt Krynicki
<zygmunt.krynicki@linaro.org>
Tue, 14 Jun 2011 10:51:49 +0000
(12:51 +0200)
committer
Zygmunt Krynicki
<zygmunt.krynicki@linaro.org>
Tue, 14 Jun 2011 10:51:49 +0000
(12:51 +0200)
linaro_django_pagination/test_project/example/templates/example/two_lists.html
patch
|
blob
|
history
linaro_django_pagination/test_project/example/templates/pagination/custom_pagination.html
[new file with mode: 0644]
patch
|
blob
diff --git
a/linaro_django_pagination/test_project/example/templates/example/two_lists.html
b/linaro_django_pagination/test_project/example/templates/example/two_lists.html
index
8f16789
..
6dde4c9
100644
(file)
--- a/
linaro_django_pagination/test_project/example/templates/example/two_lists.html
+++ b/
linaro_django_pagination/test_project/example/templates/example/two_lists.html
@@
-8,14
+8,14
@@
<p>First list has {{ first_item_list|length }} items.</p>
{% autopaginate first_item_list 5 %}
{% for item in first_item_list %}
<p>First list has {{ first_item_list|length }} items.</p>
{% autopaginate first_item_list 5 %}
{% for item in first_item_list %}
-<p>
Item
{{item}}</p>
+<p>{{item}}</p>
{% endfor %}
{% endfor %}
-{% paginate %}
+{% paginate
using2 "pagination/custom_pagination.html"
%}
<p>Second list has {{ second_item_list|length}} items.</p>
{% autopaginate second_item_list 5 %}
{% paginate %}
{% for item in second_item_list %}
<p>Second list has {{ second_item_list|length}} items.</p>
{% autopaginate second_item_list 5 %}
{% paginate %}
{% for item in second_item_list %}
-<p>
Item
{{item}}</p>
+<p>{{item}}</p>
{% endfor %}
{% endblock %}
{% endfor %}
{% endblock %}
diff --git a/linaro_django_pagination/test_project/example/templates/pagination/custom_pagination.html
b/linaro_django_pagination/test_project/example/templates/pagination/custom_pagination.html
new file mode 100644
(file)
index 0000000..
49320b9
--- /dev/null
+++ b/
linaro_django_pagination/test_project/example/templates/pagination/custom_pagination.html
@@ -0,0
+1,7
@@
+{% extends "pagination/pagination.html" %}
+
+
+{% block previouslink %}
+ <p style="color: red; background-color: white;">This part is custom</p>
+ {{ block.super }}
+{% endblock previouslink %}