From 478c46a4ac757693290a11a97e11c347679fdf62 Mon Sep 17 00:00:00 2001 From: afilsaime Date: Tue, 9 Jun 2015 15:24:13 +0200 Subject: [PATCH] import telemeta pagination system --- telemeta/templates/search/search.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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 %} -- 2.39.5