From a7ca6449a414e12c6c080f9a7ae3e7b444acd6e9 Mon Sep 17 00:00:00 2001 From: scoobybejesus <21372487+scoobybejesus@users.noreply.github.com> Date: Thu, 9 Sep 2021 20:29:17 -0400 Subject: [PATCH 1/2] Add html for if search route is enabled --- ircradio/templates/index.html | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/ircradio/templates/index.html b/ircradio/templates/index.html index faa94f0..2986105 100644 --- a/ircradio/templates/index.html +++ b/ircradio/templates/index.html @@ -41,12 +41,12 @@ history.txt -
+

Library (by user)

-
+
@@ -55,8 +55,28 @@
-
+ {% if ENABLE_SEARCH_ROUTE %} +
+
+
+

Quick Search + (general) +

+
+ +
+
+
+ + + + + +
+
+
+ {% endif %}

IRC

{{ settings.irc_host }}:{{ settings.irc_port }}
@@ -65,4 +85,7 @@
     
+ + + {% endblock %} From 35a0d8ead1075c2fd831ef938ea846243258379b Mon Sep 17 00:00:00 2001 From: scoobybejesus <21372487+scoobybejesus@users.noreply.github.com> Date: Thu, 9 Sep 2021 20:52:28 -0400 Subject: [PATCH 2/2] add %if to source search.js --- ircradio/templates/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ircradio/templates/index.html b/ircradio/templates/index.html index 2986105..19f892f 100644 --- a/ircradio/templates/index.html +++ b/ircradio/templates/index.html @@ -86,6 +86,8 @@ +{% if ENABLE_SEARCH_ROUTE %} +{% endif %} {% endblock %}