diff options
author | Alexandre Flament <alex@al-f.net> | 2022-07-02 11:29:21 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2022-07-02 11:29:21 +0200 |
commit | f8f239fe1fb0439635086713e9fd2a14d35a70ed (patch) | |
tree | 4141e30cc51f18ca505aaf2e19e42227a74a9aa2 /searx/templates | |
parent | da416511b56b6174025656d8431951eb46b1a73b (diff) | |
download | searxng-f8f239fe1fb0439635086713e9fd2a14d35a70ed.tar.gz searxng-f8f239fe1fb0439635086713e9fd2a14d35a70ed.zip |
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.
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/simple/base.html | 4 |
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> |