new_issue.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {% macro new_issue(new_issue_url, engine_name, engine_reliability) %}
  2. <form action="{{ 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" style="display: none;">{{- '' -}}
  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. <style>
  48. .github-issue-button {
  49. display: block;
  50. padding: 8px 16px;
  51. font-family: sans-serif;
  52. font-size: 16px;
  53. color: white;
  54. background-color: rgb(35, 134, 54);
  55. border: rgb(46, 160, 67);
  56. border-radius: 10px !important;
  57. box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px;
  58. }
  59. .github-issue-button:hover {
  60. background-color: rgb(46, 160, 67);
  61. }
  62. </style>
  63. <button type="submit" class="github-issue-button" title="{{ new_issue_url }}">{{ _('Submit a new issue on Github including the above information') }}</button>
  64. </form>
  65. {% endmacro %}