From: afilsaime Date: Tue, 9 Jun 2015 13:24:13 +0000 (+0200) Subject: import telemeta pagination system X-Git-Tag: 1.6a^2~15^2~25 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=478c46a4ac757693290a11a97e11c347679fdf62;p=telemeta.git import telemeta pagination system --- diff --git a/telemeta/templates/search/search.html b/telemeta/templates/search/search.html index 8d874a5f..2a96d37e 100644 --- a/telemeta/templates/search/search.html +++ b/telemeta/templates/search/search.html @@ -1,6 +1,7 @@ {% extends 'telemeta/base.html' %} {% load telemeta_utils %} {% load i18n %} +{% load bootstrap_pagination %} {% block title %} {% trans "Search" %} @@ -67,7 +68,15 @@ -

{% trans "Results" %}

+
+
+ search-results

{% trans "Search Results" %}

+
+
+ {% bootstrap_paginate page range=10 show_first_last="True" %} +
+
 
+
{% ifequal type 'item' %} @@ -110,13 +119,6 @@ {%endifequal%}
- {% if page.has_previous or page.has_next %} -
- {% if page.has_previous %}{% endif %}« Previous{% if page.has_previous %}{% endif %} - | - {% if page.has_next %}{% endif %}Next »{% if page.has_next %}{% endif %} -
- {% endif %} {% endwith %} {% if user.is_authenticated %}