[mod] source code url: add 'general.git_url_format' to settings.yml

Suggested-by: @dalf https://github.com/searxng/searxng/pull/1295#issuecomment-1152608817
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2022-06-12 13:32:49 +02:00
parent 3e9fc7934f
commit 830224c261
5 changed files with 7 additions and 4 deletions

View file

@ -52,7 +52,7 @@
<footer>
<p>
{{ _('Powered by') }} <a href="{{ url_for('info', pagename='about') }}">searxng</a> - {{ searxng_version }} — {{ _('a privacy-respecting, hackable metasearch engine') }}<br/>
<a href="{{ GIT_URL + '/tree/' + GIT_BRANCH }}">{{ _('Source code') }}</a> |
<a href="{{ git_url_format.format(GIT_URL=GIT_URL, GIT_BRANCH=GIT_BRANCH) }}">{{ _('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') %} |