team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00285
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 474: dont show pages numbers if there is only one page
------------------------------------------------------------
revno: 474
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Fri 2013-01-04 01:05:45 +0100
message:
dont show pages numbers if there is only one page
modified:
src/alfanous-django/templates/wui.html
--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git
Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous-django/templates/wui.html'
--- src/alfanous-django/templates/wui.html 2013-01-02 15:43:34 +0000
+++ src/alfanous-django/templates/wui.html 2013-01-04 00:05:45 +0000
@@ -64,7 +64,8 @@
{% block pages_bottom %}
{% block pages_top %}
- <br />
+ <br />
+ {% if results.search.interval.nb_pages > 1 %}
<div class='pages'>
{% if results.search.interval.page != 1 %}
{% with results.search.interval.page|add:"-1"|stringformat:"s" as prev_page %}
@@ -99,5 +100,6 @@
{% endif %}
</div>
- {% endblock %}
+ {% endif %}
+ {% endblock %}
{% endblock %}
\ No newline at end of file