summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-08-18 10:36:53 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-08-31 11:45:33 +0200
commit7dc370efe9dd990755a42967a71f7c1a22e29701 (patch)
treeca0370592c1c3ff2c786e2c3006d16bbda0ec01b /searx
parent1e942435be5f8dbf30be7296466ca674b69b7c70 (diff)
downloadsearxng-7dc370efe9dd990755a42967a71f7c1a22e29701.tar.gz
searxng-7dc370efe9dd990755a42967a71f7c1a22e29701.zip
[enh] new issue: include information from searx.version
Diffstat (limited to 'searx')
-rw-r--r--searx/templates/__common__/new_issue.html8
-rwxr-xr-xsearx/webapp.py1
2 files changed, 9 insertions, 0 deletions
diff --git a/searx/templates/__common__/new_issue.html b/searx/templates/__common__/new_issue.html
index c741a049f..d001df6b5 100644
--- a/searx/templates/__common__/new_issue.html
+++ b/searx/templates/__common__/new_issue.html
@@ -6,6 +6,13 @@
<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 }}
+<!-- Check if these values are correct -->
+
+{% else %}
<!-- If you are running on master branch using git execute this command
in order to fetch the latest commit ID:
```
@@ -17,6 +24,7 @@ and check for the version after "Powered by SearXNG"
Please also stipulate if you are using a forked version of SearxNG and
include a link to the fork source code.
-->
+{% endif %}
**How did you install SearXNG?**
<!-- Did you install SearXNG using the official wiki or using searx-docker
or manually by executing the searx/webapp.py file? -->
diff --git a/searx/webapp.py b/searx/webapp.py
index 3b7e0f972..b935424f1 100755
--- a/searx/webapp.py
+++ b/searx/webapp.py
@@ -1191,6 +1191,7 @@ def stats():
engine_stats = engine_stats,
engine_reliabilities = engine_reliabilities,
selected_engine_name = selected_engine_name,
+ searx_git_branch = GIT_BRANCH,
)