summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2021-08-31 09:54:38 +0000
committerGitHub <noreply@github.com>2021-08-31 09:54:38 +0000
commite44f4dc4b341105d7e7b23173966bcc6fd76d747 (patch)
treeca0370592c1c3ff2c786e2c3006d16bbda0ec01b
parent1e942435be5f8dbf30be7296466ca674b69b7c70 (diff)
parent7dc370efe9dd990755a42967a71f7c1a22e29701 (diff)
Merge pull request #269 from dalf/enh_new_bug_form
[enh] new issue: include information from searx.version
-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,
)