From 8282236c81b58a71a66a5d02b77050cb0b73ec53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ondr=CC=8Cej=20Ny=CC=81vlt?= Date: Sat, 19 Aug 2023 11:21:28 +0200 Subject: [PATCH] Fix bug: toggling expand diff did not current page --- view/app.py | 1 + view/templates/index.html | 28 ++++++++++++++++++---------- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/view/app.py b/view/app.py index a9ce493..f8c5836 100644 --- a/view/app.py +++ b/view/app.py @@ -77,6 +77,7 @@ def index(): return render_template('./index.html', diffs=diffs, + page=page, pagination=pagination, diff_count = diff_count, search=search, diff --git a/view/templates/index.html b/view/templates/index.html index 63265a8..6060f11 100644 --- a/view/templates/index.html +++ b/view/templates/index.html @@ -19,18 +19,26 @@ value="Hledat" > Hledat - + + + - +
+ {% if page > 1 %} + + {% endif %} + +