From e90293709d05e5d21b78bdc2fda4850415bcee13 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Tue, 14 Feb 2017 11:59:29 +0100 Subject: [PATCH] allow paging through search --- rowers/templates/list_workouts.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/rowers/templates/list_workouts.html b/rowers/templates/list_workouts.html index f420befe..354a4842 100644 --- a/rowers/templates/list_workouts.html +++ b/rowers/templates/list_workouts.html @@ -158,17 +158,24 @@
{% if workouts.has_previous %} + {% if request.GET.q %} + < + {% else %} < {% endif %} + {% endif %} Page {{ workouts.number }} of {{ workouts.paginator.num_pages }}. {% if workouts.has_next %} + {% if request.GET.q %} + > + {% else %} > {% endif %} + {% endif %} - {% endblock %}