diff --git a/src/alfanous-django/templates/aya_results.html b/src/alfanous-django/templates/aya_results.html index 414fc6b00..66cd4af10 100644 --- a/src/alfanous-django/templates/aya_results.html +++ b/src/alfanous-django/templates/aya_results.html @@ -10,10 +10,6 @@ {% block pagination_phone %} {% endblock %} {% endkwacro %} -{% block pagination_rel_block %} - {% include 'wui/pagination_rel.html' with page=results.search.interval.page nb_pages=results.search.interval.nb_pages %} -{% endblock %} - {% block results %}
diff --git a/src/alfanous-django/templates/aya_search.html b/src/alfanous-django/templates/aya_search.html index ff2917555..2d894b5f1 100644 --- a/src/alfanous-django/templates/aya_search.html +++ b/src/alfanous-django/templates/aya_search.html @@ -3,6 +3,12 @@ {% load custom_filters %} {% load query %} +{% block pagination_rel_block %} + {% if results.search.interval.nb_pages > 1 %} + {% include 'wui/pagination_rel.html' with page=results.search.interval.page nb_pages=results.search.interval.nb_pages %} + {% endif %} +{% endblock %} + {% block options %}
diff --git a/src/alfanous-django/templates/translation_search.html b/src/alfanous-django/templates/translation_search.html index d2389ec54..463ccec80 100644 --- a/src/alfanous-django/templates/translation_search.html +++ b/src/alfanous-django/templates/translation_search.html @@ -3,6 +3,12 @@ {% load custom_filters %} {% load query %} +{% block pagination_rel_block %} + {% if results.search.interval.nb_pages > 1 %} + {% include 'wui/pagination_rel.html' with page=results.search.interval.page nb_pages=results.search.interval.nb_pages %} + {% endif %} +{% endblock %} + {% block no_request %}
{{ _("List of indexed Quran translations") }} ({{ _("Translation source:") }} {{ _("Tanzil") }}):
diff --git a/src/alfanous-django/templates/word_search.html b/src/alfanous-django/templates/word_search.html index 73db2c54c..0f051068e 100644 --- a/src/alfanous-django/templates/word_search.html +++ b/src/alfanous-django/templates/word_search.html @@ -3,7 +3,11 @@ {% load custom_filters %} {% load query %} - +{% block pagination_rel_block %} + {% if results.search.interval.nb_pages > 1 %} + {% include 'wui/pagination_rel.html' with page=results.search.interval.page nb_pages=results.search.interval.nb_pages %} + {% endif %} +{% endblock %} {% block options %} {% endblock %} diff --git a/src/alfanous-django/wui/templates/wui/pagination_rel.html b/src/alfanous-django/wui/templates/wui/pagination_rel.html index 5fcec111c..4b0ac69bc 100644 --- a/src/alfanous-django/wui/templates/wui/pagination_rel.html +++ b/src/alfanous-django/wui/templates/wui/pagination_rel.html @@ -6,12 +6,12 @@ {% if page != 1 %} {% with page|add:"-1" as prev_page %} - + {% endwith %} {% endif %} {% if page != nb_pages %} {% with page|add:"+1" as next_page %} - + {% endwith %} {% endif %}