diff options
author | Martin Fischer <martin@push-f.com> | 2022-01-31 11:50:20 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-01-31 11:57:24 +0100 |
commit | e7c0f4e877dc90fc44989a304b555a8b6f1f6665 (patch) | |
tree | 918c4a6b23e238c4a77a3cc4402bcb5aa5dc2b5d /searx/templates | |
parent | c82b9c68d282a2f674632ce0e0720da85c64a1c4 (diff) | |
download | searxng-e7c0f4e877dc90fc44989a304b555a8b6f1f6665.tar.gz searxng-e7c0f4e877dc90fc44989a304b555a8b6f1f6665.zip |
[simple] link preferences on /about and /stats
We want to link the preferences from every page
(except of course the preferences page).
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/simple/base.html | 4 | ||||
-rw-r--r-- | searx/templates/simple/index.html | 1 | ||||
-rw-r--r-- | searx/templates/simple/preferences.html | 1 | ||||
-rw-r--r-- | 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 @@ </div> {% endif %} + {% block linkto_preferences %} + {% from 'simple/icons.html' import icon_big %} + <nav id="linkto_preferences"><a href="{{ url_for('preferences') }}">{{ icon_big('menu-outline') }}</a></nav> + {% 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 @@ <link rel="preload" href="{{ url_for('static', filename='img/searxng.png') }}" as="image" /> {% endblock %} {% block content %} -<nav id="linkto_preferences"><a href="{{ url_for('preferences') }}">{{ icon_big('menu-outline') }}</a></nav> <div class="index"> <div class="title"><h1>SearXNG</h1></div> {% 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 %} <h1>{{ _('Preferences') }}</h1> 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 %}<link rel="alternate" type="application/rss+xml" title="Searx search: {{ q|e }}" href="{{ url_for('search', _external=True) }}?q={{ q|urlencode }}&categories={{ selected_categories|join(",") | replace(' ','+') }}&pageno={{ pageno }}&time_range={{ time_range }}&language={{ current_language }}&safesearch={{ safesearch }}&format=rss">{% endblock %} {% block content %} -<nav id="linkto_preferences"><a href="{{ url_for('preferences') }}">{{ icon_big('menu-outline') }}</a></nav> {% include 'simple/search.html' %} {% if results and results|map(attribute='template')|unique|list|count == 1 %} |