From 4e177f9400a44fd28f26a96fa54ef5074c03d59c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 5 Aug 2022 09:46:55 +0100 Subject: [PATCH] Link search button to search page For now... --- website/common/templates/common/navbar.html | 2 +- website/common/templatetags/navbar_tags.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/website/common/templates/common/navbar.html b/website/common/templates/common/navbar.html index 576e6b3..34fe928 100644 --- a/website/common/templates/common/navbar.html +++ b/website/common/templates/common/navbar.html @@ -28,7 +28,7 @@ - + diff --git a/website/common/templatetags/navbar_tags.py b/website/common/templatetags/navbar_tags.py index 1ccae63..728ce77 100644 --- a/website/common/templatetags/navbar_tags.py +++ b/website/common/templatetags/navbar_tags.py @@ -1,6 +1,7 @@ from django.template import Library from website.home.models import HomePage +from website.search.models import SearchPage register = Library() @@ -14,4 +15,5 @@ def navbar() -> dict: .live() .filter(show_in_menus=True) .order_by("title"), + "search_page": SearchPage.objects.all().live().defer_streamfields().first(), }