From dbbbbc0736be7a71b57334a9081537ca360ce65a Mon Sep 17 00:00:00 2001 From: Lyubomir Ternavskiy <127299159+LyubomirT@users.noreply.github.com> Date: Mon, 8 Jan 2024 02:51:22 -0700 Subject: [PATCH 1/3] Update app.py --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index ed40127..a0a8725 100644 --- a/app.py +++ b/app.py @@ -57,6 +57,7 @@ def delete(id): db.session.commit() return redirect(url_for('Home')) +# Inside the `search` route @app.route('/search', methods=['GET']) def search(): search_query = request.args.get('search') @@ -66,6 +67,7 @@ def search(): return render_template('search.html', todos=todos) return redirect(url_for('Home')) + @app.route('/about') def about(): return render_template('about.html') From c9b31e918353cdfbbb5ecfa3b1397b1a99ef4548 Mon Sep 17 00:00:00 2001 From: Lyubomir Ternavskiy <127299159+LyubomirT@users.noreply.github.com> Date: Mon, 8 Jan 2024 02:51:42 -0700 Subject: [PATCH 2/3] Update search.html --- templates/search.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/search.html b/templates/search.html index ec2a7f8..ca04bce 100644 --- a/templates/search.html +++ b/templates/search.html @@ -1,9 +1,9 @@ {% extends "base.html" %} {% block body %} -

Search Results

- +

Search Results

+ {% endblock body %} From 5aa4b4a7cf33a8fa2220513b2df149c7680b7dce Mon Sep 17 00:00:00 2001 From: Lyubomir Ternavskiy <127299159+LyubomirT@users.noreply.github.com> Date: Mon, 8 Jan 2024 02:51:55 -0700 Subject: [PATCH 3/3] Update navbar.html --- templates/navbar.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/navbar.html b/templates/navbar.html index 97e09ba..b1e3e20 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -29,13 +29,14 @@ - + + - \ No newline at end of file +