From 047d0ac6d630da4f1aa119b86671ce144bd3298d Mon Sep 17 00:00:00 2001 From: mrpaulblack Date: Mon, 22 Nov 2021 00:32:04 +0100 Subject: [simple template] return a default string if there is no description --- searx/templates/simple/result_templates/videos.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'searx/templates/simple/result_templates/videos.html') diff --git a/searx/templates/simple/result_templates/videos.html b/searx/templates/simple/result_templates/videos.html index 8127b3d4e..81b88c4d9 100644 --- a/searx/templates/simple/result_templates/videos.html +++ b/searx/templates/simple/result_templates/videos.html @@ -5,7 +5,9 @@ {% if result.embedded -%} {%- endif %} -{% if result.content %}

{{ result.content|safe }}

{% endif %} +

+ {%- if result.content %}{{ result.content|safe }}{%- else %}{{ _('This site did not provide any description.')|safe }}{% endif -%} +

{{- result_sub_footer(result, proxify) -}} {% if result.embedded -%}