[mod] source code url: GIT_URL + '/tree/' + GIT_BRANCH

The link 'Source code' in the footer should link to the branch URL:

    GIT_URL + '/tree/' + GIT_BRANCH

This URL fits at least for github and gitlab.

BTW clear the naming and replace:

- `searx_git_url` and `searx_git_branch` by `GIT_URL` and `GIT_BRANCH`
- 'searx_version' by 'searxng_version'

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2022-06-07 15:08:58 +02:00
parent 2455f1d06a
commit 3e9fc7934f
4 changed files with 12 additions and 12 deletions

View file

@ -6,10 +6,10 @@
<textarea name="body" class="issue-hide">{{- '' -}}
**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
{% if searx_git_url and searx_git_url != 'unknow' %}
Repository: {{ searx_git_url }}
Branch: {{ searx_git_branch }}
Version: {{ searx_version }}
{% if GIT_URL and GIT_URL != 'unknow' %}
Repository: {{ GIT_URL }}
Branch: {{ GIT_BRANCH }}
Version: {{ searxng_version }}
<!-- Check if these values are correct -->
{% else %}