diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2022-07-04 14:07:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-04 14:07:28 +0200 |
| commit | 7a9beb4fa4c705c4871d753826a73ac2a4d7a423 (patch) | |
| tree | f6cf5d591905e11d398a16223852fd97a453a7a6 /searx | |
| parent | 4ef62637256d4b2966ff7f0be0051e02d545f756 (diff) | |
| parent | 61ee370e1861819fb4ffe1e73b2389332df07cec (diff) | |
Merge pull request #1409 from Xavierhorwood/public_instances2
Public instances can be set to hidden
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/settings_defaults.py | 2 | ||||
| -rw-r--r-- | searx/templates/simple/base.html | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py index d951624cd..bb4707cc4 100644 --- a/searx/settings_defaults.py +++ b/searx/settings_defaults.py @@ -149,7 +149,7 @@ SCHEMA = { 'issue_url': SettingsValue(str, 'https://github.com/searxng/searxng/issues'), 'new_issue_url': SettingsValue(str, 'https://github.com/searxng/searxng/issues/new'), 'docs_url': SettingsValue(str, 'https://docs.searxng.org'), - 'public_instances': SettingsValue(str, 'https://searx.space'), + 'public_instances': SettingsValue((False, str), 'https://searx.space'), 'wiki_url': SettingsValue(str, 'https://github.com/searxng/searxng/wiki'), }, 'search': { diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html index b9867c42f..d1d3d8fe5 100644 --- a/searx/templates/simple/base.html +++ b/searx/templates/simple/base.html @@ -64,8 +64,10 @@ {{ _('Powered by') }} <a href="{{ url_for('info', pagename='about') }}">searxng</a> - {{ searx_version }} — {{ _('a privacy-respecting, hackable metasearch engine') }}<br/> <a href="{{ searx_git_url }}">{{ _('Source code') }}</a> | <a href="{{ get_setting('brand.issue_url') }}">{{ _('Issue tracker') }}</a> | - <a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a> | - <a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a> + <a href="{{ url_for('stats') }}">{{ _('Engine stats') }}</a> + {% if get_setting('brand.public_instances') %} + | <a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a> + {% endif %} {% if get_setting('general.privacypolicy_url') %} | <a href="{{ get_setting('general.privacypolicy_url') }}">{{ _('Privacy policy') }}</a> {% endif %} |