diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2020-06-29 06:14:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-29 06:14:42 +0000 |
| commit | bdd24a6e7100d6df44400ca792b0468e4993a317 (patch) | |
| tree | 0a42e07e87a0cf27f5b47cc644763aa68e27205b /searx/templates/oscar/result_templates/code.html | |
| parent | c9795ad01f62babd282074d1d6e836b3e66ad564 (diff) | |
| parent | e39ad892de49b93d39df893f3b134387b3a933b2 (diff) | |
Merge branch 'master' into blog-dev-in-lxc
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 }} |