summaryrefslogtreecommitdiff
path: root/searx/templates
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-07-02 17:18:05 +0200
committerGitHub <noreply@github.com>2022-07-02 17:18:05 +0200
commit4ef62637256d4b2966ff7f0be0051e02d545f756 (patch)
treeb37eb2314f1b51df0d0fe8f63ed1b3cbbcfaa17c /searx/templates
parent8e155b40bc86854b151e152ca4570515eb531e91 (diff)
parentfaf56d4f96ed1afb12ef37980ef382f2ec82fc58 (diff)
downloadsearxng-4ef62637256d4b2966ff7f0be0051e02d545f756.tar.gz
searxng-4ef62637256d4b2966ff7f0be0051e02d545f756.zip
Merge pull request #1404 from dalf/donation_use_external_link
Donation link: default value to searxng.org, can be hidden or custom
Diffstat (limited to 'searx/templates')
-rw-r--r--searx/templates/simple/base.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/templates/simple/base.html b/searx/templates/simple/base.html
index fbb60cc26..b9867c42f 100644
--- a/searx/templates/simple/base.html
+++ b/searx/templates/simple/base.html
@@ -46,7 +46,9 @@
<a href="{{ url_for('info', pagename='about') }}" class="link_on_top_about">{{ icon_big('information-circle-outline') }}<span>{{ _('About') }}</span></a>
{%- endblock -%}
{%- block linkto_donate -%}
- <a href="{{ url_for('info', pagename='donate') }}" class="link_on_top_donate">{{ icon_big('heart-outline') }}<span>{{ _('Donate') }}</span></a>
+ {%- if donation_url -%}
+ <a href="{{ donation_url }}" class="link_on_top_donate">{{ icon_big('heart-outline') }}<span>{{ _('Donate') }}</span></a>
+ {%- endif -%}
{%- endblock -%}
{%- block linkto_preferences -%}
<a href="{{ url_for('preferences') }}" class="link_on_top_preferences">{{ icon_big('menu-outline') }}<span>{{ _('Preferences') }}</span></a>