Browse Source

[enh] new issue: include information from searx.version

Alexandre Flament 3 years ago
parent
commit
7dc370efe9
2 changed files with 9 additions and 0 deletions
  1. 8 0
      searx/templates/__common__/new_issue.html
  2. 1 0
      searx/webapp.py

+ 8 - 0
searx/templates/__common__/new_issue.html

@@ -6,6 +6,13 @@
     <textarea name="body" class="issue-hide">{{- '' -}}
     <textarea name="body" class="issue-hide">{{- '' -}}
 
 
 **Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
 **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
 <!-- If you are running on master branch using git execute this command
 in order to fetch the latest commit ID:
 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
 Please also stipulate if you are using a forked version of SearxNG and
 include a link to the fork source code.
 include a link to the fork source code.
 -->
 -->
+{% endif %}
 **How did you install SearXNG?**
 **How did you install SearXNG?**
 <!-- Did you install SearXNG using the official wiki or using searx-docker
 <!-- Did you install SearXNG using the official wiki or using searx-docker
 or manually by executing the searx/webapp.py file? -->
 or manually by executing the searx/webapp.py file? -->

+ 1 - 0
searx/webapp.py

@@ -1191,6 +1191,7 @@ def stats():
         engine_stats = engine_stats,
         engine_stats = engine_stats,
         engine_reliabilities = engine_reliabilities,
         engine_reliabilities = engine_reliabilities,
         selected_engine_name = selected_engine_name,
         selected_engine_name = selected_engine_name,
+        searx_git_branch = GIT_BRANCH,
     )
     )