diff options
| author | Alexandre Flament <alex@al-f.net> | 2021-04-25 14:31:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-25 14:31:52 +0200 |
| commit | 51494849fc821fb9ef3d3738d96a86c4d48a5ca3 (patch) | |
| tree | 810ea893a696cc6630f89400bb84d35f72ad1f7e /searx/templates/__common__ | |
| parent | d20f2822d03e67b436973c8520a288fcc76c409a (diff) | |
| parent | df41b7712150adf384bc08e38215a7cc9970c100 (diff) | |
Merge pull request #23 from searxng/metrics-stats-engines
Metrics stats engines
Diffstat (limited to 'searx/templates/__common__')
| -rw-r--r-- | searx/templates/__common__/new_issue.html | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/searx/templates/__common__/new_issue.html b/searx/templates/__common__/new_issue.html new file mode 100644 index 000000000..2a111a527 --- /dev/null +++ b/searx/templates/__common__/new_issue.html @@ -0,0 +1,74 @@ +{% macro new_issue(new_issue_url, engine_name, engine_reliability) %} +<form action="{{ new_issue_url }}" method="GET"> + <input name="title" type="hidden" value="Bug: {{ engine_name }} engine"> + <input name="labels" type="hidden" value="bug"> + <input name="template" type="hidden" value="bug-report.md"> + <textarea name="body" style="display: none;">{{- '' -}} + +**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG** +<!-- If you are running on master branch using git execute this command +in order to fetch the latest commit ID: +``` +git log -1 +``` +If you are using searx-docker then look at the bottom of the SearXNG page +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. +--> +**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? --> +**What happened?** +<!-- A clear and concise description of what the bug is. --> + +**How To Reproduce** +<!-- How can we reproduce this issue? (as minimally and as precisely as possible) --> + +**Expected behavior** +<!-- A clear and concise description of what you expected to happen. --> + +**Screenshots & Logs** +<!-- If applicable, add screenshots, logs to help explain your problem. --> + +**Additional context** +<!-- Add any other context about the problem here. --> + +**Technical report** + +{% for error in engine_reliability.errors %} +{% if secondary %}Warning{% else %}Error{% endif %} +{{'\n '}}* Error: {{ error.exception_classname or error.log_message }} +{{' '}}* Percentage: {{ error.percentage }} +{{' '}}* Parameters: `{{ error.log_parameters }}` +{{' '}}* File name: `{{ error.filename }}:{{ error.line_no }}` +{{' '}}* Function: `{{ error.function }}` +{{' '}}* Code: `{{ error.code }}` +{{'\n'-}} +{%- endfor -%} +{%- for test_name, results in engine_reliability.checker.items() -%} +{%- if loop.first %}Checker{% endif -%} +{{-'\n '}}* {{ test_name }}: {% for result in results%}`{{ result }}`,{% endfor -%} +{%- endfor -%} + </textarea> + <style> + .github-issue-button { + display: block; + padding: 8px 16px; + font-family: sans-serif; + font-size: 16px; + color: white; + background-color: rgb(35, 134, 54); + border: rgb(46, 160, 67); + border-radius: 10px !important; + box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px; + } + + .github-issue-button:hover { + background-color: rgb(46, 160, 67); + } + </style> + <button type="submit" class="github-issue-button" title="{{ new_issue_url }}">{{ _('Submit a new issue on Github including the above information') }}</button> +</form> +{% endmacro %} |