new_issue.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {% macro new_issue(engine_name, engine_reliability) %}
  2. <form action="{{ get_setting('brand.new_issue_url') }}" method="GET">
  3. <input name="title" type="hidden" value="Bug: {{ engine_name }} engine">
  4. <input name="labels" type="hidden" value="bug">
  5. <input name="template" type="hidden" value="bug-report.md">
  6. <textarea name="body" class="issue-hide">{{- '' -}}
  7. **Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
  8. <!-- If you are running on master branch using git execute this command
  9. in order to fetch the latest commit ID:
  10. ```
  11. git log -1
  12. ```
  13. If you are using searx-docker then look at the bottom of the SearXNG page
  14. and check for the version after "Powered by SearXNG"
  15. Please also stipulate if you are using a forked version of SearxNG and
  16. include a link to the fork source code.
  17. -->
  18. **How did you install SearXNG?**
  19. <!-- Did you install SearXNG using the official wiki or using searx-docker
  20. or manually by executing the searx/webapp.py file? -->
  21. **What happened?**
  22. <!-- A clear and concise description of what the bug is. -->
  23. **How To Reproduce**
  24. <!-- How can we reproduce this issue? (as minimally and as precisely as possible) -->
  25. **Expected behavior**
  26. <!-- A clear and concise description of what you expected to happen. -->
  27. **Screenshots & Logs**
  28. <!-- If applicable, add screenshots, logs to help explain your problem. -->
  29. **Additional context**
  30. <!-- Add any other context about the problem here. -->
  31. **Technical report**
  32. {% for error in engine_reliability.errors %}
  33. {% if secondary %}Warning{% else %}Error{% endif %}
  34. {{'\n '}}* Error: {{ error.exception_classname or error.log_message }}
  35. {{' '}}* Percentage: {{ error.percentage }}
  36. {{' '}}* Parameters: `{{ error.log_parameters }}`
  37. {{' '}}* File name: `{{ error.filename }}:{{ error.line_no }}`
  38. {{' '}}* Function: `{{ error.function }}`
  39. {{' '}}* Code: `{{ error.code }}`
  40. {{'\n'-}}
  41. {%- endfor -%}
  42. {%- for test_name, results in engine_reliability.checker.items() -%}
  43. {%- if loop.first %}Checker{% endif -%}
  44. {{-'\n '}}* {{ test_name }}: {% for result in results%}`{{ result }}`,{% endfor -%}
  45. {%- endfor -%}
  46. </textarea>
  47. <button type="submit" class="github-issue-button" title="{{ get_setting('brand.new_issue_url') }}">{{ _('Submit a new issue on Github including the above information') }}</button>
  48. </form>
  49. {% endmacro %}