From e7c0f4e877dc90fc44989a304b555a8b6f1f6665 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 31 Jan 2022 11:50:20 +0100 Subject: [PATCH] [simple] link preferences on /about and /stats We want to link the preferences from every page (except of course the preferences page). --- searx/templates/simple/base.html | 4 ++++ searx/templates/simple/index.html | 1 - searx/templates/simple/preferences.html | 1 + searx/templates/simple/results.html | 1 - 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index 548710310..2bb7d8b2a 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -47,6 +47,10 @@ {% endif %} + {% block linkto_preferences %} + {% from 'simple/icons.html' import icon_big %} + + {% endblock %} {% block header %} {% endblock %} {% block content %} diff --git a/searx/templates/simple/index.html b/searx/templates/simple/index.html index 1e4ea0c48..5a83e10a0 100644 --- a/searx/templates/simple/index.html +++ b/searx/templates/simple/index.html @@ -4,7 +4,6 @@ {% endblock %} {% block content %} -

SearXNG

{% include 'simple/simple_search.html' %} diff --git a/searx/templates/simple/preferences.html b/searx/templates/simple/preferences.html index 6b21afee4..b674d5d02 100644 --- a/searx/templates/simple/preferences.html +++ b/searx/templates/simple/preferences.html @@ -94,6 +94,7 @@ {%- endmacro -%} {% block head %} {% endblock %} +{% block linkto_preferences %}{% endblock %} {% block content %}

{{ _('Preferences') }}

diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index b9764addd..4149f83c3 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -10,7 +10,6 @@ {% block title %}{% if query_in_title %}{{- q|e }} - {% endif %}{% endblock %} {% block meta %}{% endblock %} {% block content %} - {% include 'simple/search.html' %} {% if results and results|map(attribute='template')|unique|list|count == 1 %}