mirror of
https://github.com/searxng/searxng.git
synced 2025-08-03 10:32:21 +02:00
Merge pull request #1329 from samsaptidev/feature/privacypolicy_url
Add privacypolicy_url option
This commit is contained in:
commit
a7b0b2ecbf
7 changed files with 18 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
general:
|
||||
debug: false # Debug mode, only for development
|
||||
instance_name: "SearXNG" # displayed name
|
||||
privacypolicy_url: false # https://example.com/privacy
|
||||
contact_url: false # mailto:contact@example.com
|
||||
enable_metrics: true # record stats
|
||||
|
||||
|
|
|
@ -140,6 +140,7 @@ SCHEMA = {
|
|||
'general': {
|
||||
'debug': SettingsValue(bool, False, 'SEARXNG_DEBUG'),
|
||||
'instance_name': SettingsValue(str, 'SearXNG'),
|
||||
'privacypolicy_url': SettingsValue((None, False, str), None),
|
||||
'contact_url': SettingsValue((None, False, str), None),
|
||||
'enable_metrics': SettingsValue(bool, True),
|
||||
},
|
||||
|
|
|
@ -55,8 +55,13 @@
|
|||
<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>{% if get_setting('general.contact_url') %} |
|
||||
<a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a>{% endif %}
|
||||
<a href="{{ get_setting('brand.public_instances') }}">{{ _('Public instances') }}</a>
|
||||
{% if get_setting('general.privacypolicy_url') %}
|
||||
| <a href="{{ get_setting('general.privacypolicy_url') }}">{{ _('Privacy policy') }}</a>
|
||||
{% endif %}
|
||||
{% if get_setting('general.contact_url') %}
|
||||
| <a href="{{ get_setting('general.contact_url') }}">{{ _('Contact instance maintainer') }}</a>
|
||||
{% endif %}
|
||||
</p>
|
||||
</footer>
|
||||
<!--[if gte IE 9]>-->
|
||||
|
|
|
@ -1355,6 +1355,7 @@ def config():
|
|||
'default_theme': settings['ui']['default_theme'],
|
||||
'version': VERSION_STRING,
|
||||
'brand': {
|
||||
'PRIVACYPOLICY_URL': get_setting('general.privacypolicy_url'),
|
||||
'CONTACT_URL': get_setting('general.contact_url'),
|
||||
'GIT_URL': GIT_URL,
|
||||
'GIT_BRANCH': GIT_BRANCH,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue