From 190b6844694f690f11f639c19c6c90e7157134ab Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Wed, 27 Oct 2021 12:30:55 -0600 Subject: [PATCH] Reformat view templates --- app/templates/display.html | 72 +++--- app/templates/header.html | 56 ++--- app/templates/index.html | 446 ++++++++++++++++++----------------- app/templates/opensearch.xml | 25 +- 4 files changed, 311 insertions(+), 288 deletions(-) diff --git a/app/templates/display.html b/app/templates/display.html index e9ec20b..4f2c109 100644 --- a/app/templates/display.html +++ b/app/templates/display.html @@ -1,45 +1,45 @@ - - - - - - - - - - {% if config.theme %} - {% if config.theme == 'system' %} + + + + + + + + + + {% if config.theme %} + {% if config.theme == 'system' %} - {% else %} - - {% endif %} {% else %} - + {% endif %} - - {{ clean_query(query) }} - Whoogle Search - - - {{ search_header|safe }} - {% if is_translation %} - + {% else %} + {% endif %} - {{ response|safe }} - - - - - + + {{ clean_query(query) }} - Whoogle Search + + +{{ search_header|safe }} +{% if is_translation %} + +{% endif %} +{{ response|safe }} + + + + + diff --git a/app/templates/header.html b/app/templates/header.html index 0ba701c..e9c04e2 100644 --- a/app/templates/header.html +++ b/app/templates/header.html @@ -2,8 +2,8 @@
+ id="search-form" + method="{{ 'GET' if config.get_only else 'POST' }}">