From 935aed7ca4339a72dc9ace7297d34550e991c6f9 Mon Sep 17 00:00:00 2001
From: Markus Heiser
Date: Wed, 6 Sep 2023 19:12:27 +0200
Subject: [feature] dark theme for code highlighter in the result list
Closes: https://github.com/searxng/searxng/issues/1354
Signed-off-by: Markus Heiser
---
searx/templates/simple/result_templates/code.html | 27 +++++++++++++++++++----
1 file changed, 23 insertions(+), 4 deletions(-)
(limited to 'searx/templates/simple/result_templates/code.html')
diff --git a/searx/templates/simple/result_templates/code.html b/searx/templates/simple/result_templates/code.html
index 3fe429caa..7d2c8ff79 100644
--- a/searx/templates/simple/result_templates/code.html
+++ b/searx/templates/simple/result_templates/code.html
@@ -2,12 +2,31 @@
{{ result_header(result, favicons, image_proxify) -}}
{{- result_sub_header(result) -}}
-{%- if result.content %}{{ result.content|safe }}{% endif %}
+
+{%- if result.content -%}
+
+ {{- result.content|safe -}}
+
+{%- endif -%}
{%- if result.repository -%}
-{{ result.repository }}
+ {{- '' -}}
+ {{ _('repo') }}: {{- ' ' -}}
+
+ {{- result.repository -}}
+ {{- '' -}}
+
{%- endif -%}
+
{{- result.codelines|code_highlighter(result.code_language)|safe -}}
-
{{- '' -}}
+
+
{{- result_sub_footer(result, proxify) -}}
-{{ result_footer(result) }}
+{{- result_footer(result) -}}
--
cgit v1.2.3