summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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,
)