From f8f239fe1fb0439635086713e9fd2a14d35a70ed Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 2 Jul 2022 11:29:21 +0200 Subject: Donation link: default value to searxng.org, can be hidden or custom Add a new setting: general.donation_url By default the value is https://docs.searxng.org/donate.html When the value is false, the link is hidden When the value is true, the link goes to the infopage donation, the administrator can create a custom page. --- searx/templates/simple/base.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'searx/templates/simple/base.html') 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 @@ {{ icon_big('information-circle-outline') }}{{ _('About') }} {%- endblock -%} {%- block linkto_donate -%} - {{ icon_big('heart-outline') }}{{ _('Donate') }} + {%- if donation_url -%} + {{ icon_big('heart-outline') }}{{ _('Donate') }} + {%- endif -%} {%- endblock -%} {%- block linkto_preferences -%} {{ icon_big('menu-outline') }}{{ _('Preferences') }} -- cgit v1.2.3