Commit 478b8a68 authored by Fabien Morin's avatar Fabien Morin

* add the following condition : <tal:block tal:condition="python:...

* add the following condition : <tal:block tal:condition="python: here.total_pages > 1"> to not display the page navigation if there is only one page. This permit to increase performances in case there only one page.
* change all the indentation due to this new condition

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26840 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b2692f05
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
xmlns:metal="http://xml.zope.org/namespaces/metal"\n xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
<tal:block metal:define-macro="page_navigation">\n <tal:block metal:define-macro="page_navigation">\n
<tal:block tal:condition="python: here.total_pages > 1">\n
<tal:block tal:condition="not: is_gadget_mode">\n <tal:block tal:condition="not: is_gadget_mode">\n
<tal:block tal:condition="python: here.current_page > 0">\n <tal:block tal:condition="python: here.current_page > 0">\n
<input\n <input\n
...@@ -155,6 +156,7 @@ ...@@ -155,6 +156,7 @@
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
</tal:block>\n
</tal:block>\n </tal:block>\n
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment