diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2020-06-29 06:47:06 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-29 06:47:06 +0000 |
| commit | 02017bc624e13341d29ec63a48566dbd618ccee1 (patch) | |
| tree | af61bed20c47fec9603fd62cb23142a5be6462d3 /searx/templates/oscar/result_templates/code.html | |
| parent | 93cbd85b8a5becdf69e6d70dd7c60f7122531262 (diff) | |
| parent | 0fdd9339d09864ae0f5caca2b8aa9210d8757744 (diff) | |
Merge branch 'master' into duckduckgo_correction
Diffstat (limited to 'searx/templates/oscar/result_templates/code.html')
| -rw-r--r-- | searx/templates/oscar/result_templates/code.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/oscar/result_templates/code.html b/searx/templates/oscar/result_templates/code.html index a1c18a6b7..c7d93e2b3 100644 --- a/searx/templates/oscar/result_templates/code.html +++ b/searx/templates/oscar/result_templates/code.html @@ -1,11 +1,11 @@ -{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %} +{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon with context%} {{ result_header(result, favicons) }} {{ result_sub_header(result) }} {% if result.content %}<p class="result-content">{{ result.content|safe }}</p>{% endif %} -{% if result.repository %}<p class="result-content">{{ icon('file') }} <a href="{{ result.repository }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ result.repository }}</a></p>{% endif %} +{% if result.repository %}<p class="result-content">{{ icon('file') }} <a href="{{ result.repository }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %} aria-labelledby="result-{{loop.index}}">{{ result.repository }}</a></p>{% endif %} <div dir="ltr"> {{ result.codelines|code_highlighter(result.code_language)|safe }} |