1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-19 02:40:11 +01:00

Merge pull request #535 from mrpaulblack/article-default-description

[simple template] return a default string if there is no description
This commit is contained in:
Paul Braeuning 2021-11-23 18:28:26 +01:00 committed by GitHub
commit 6bc2de0194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 33 additions and 8 deletions

View File

@ -2917,6 +2917,9 @@ article[data-vim-selected].category-social {
color: var(--color-result-link-font-highlight);
background: inherit;
}
.empty_element {
font-style: italic;
}
.result-images {
display: inline-block;
margin: 0;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2917,6 +2917,9 @@ article[data-vim-selected].category-social {
color: var(--color-result-link-font-highlight);
background: inherit;
}
.empty_element {
font-style: italic;
}
.result-images {
display: inline-block;
margin: 0;

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -325,6 +325,10 @@ article[data-vim-selected].category-social {
background: inherit;
}
.empty_element {
font-style: italic;
}
.result-images {
display: inline-block;
margin: 0;

View File

@ -5,9 +5,15 @@
{% if result.embedded -%}
<p class="altlink"> &bull; <a class="btn-collapse collapsed media-loader disabled_if_nojs" data-target="#result-media-{{ index }}" data-btn-text-collapsed="{{ _('show media') }}" data-btn-text-not-collapsed="{{ _('hide media') }}">{{ icon('music-note') }} {{ _('show media') }}</a></p>
{%- endif %}
{%- if result.content %}
<p class="content">
{%- if result.content %}{{ result.content|safe }}{% endif -%}
{{ result.content|safe }}
</p>
{%- else %}
<p class="content empty_element">
{{ _('This site did not provide any description.')|safe }}
</p>
{% endif -%}
{{- result_sub_footer(result, proxify) -}}
{% if result.embedded -%}
<div id="result-media-{{ index }}" class="invisible">

View File

@ -5,7 +5,16 @@
{% if result.embedded -%}
<p class="altlink"> &bull; <a class="btn-collapse collapsed media-loader disabled_if_nojs" data-target="#result-video-{{ index }}" data-btn-text-collapsed="{{ _('show video') }}" data-btn-text-not-collapsed="{{ _('hide video') }}">{{ icon('film-outline') }} {{ _('show video') }}</a></p>
{%- endif %}
{% if result.content %}<p class="content">{{ result.content|safe }}</p>{% endif %}
{%- if result.content %}
<p class="content">
{{ result.content|safe }}
</p>
{%- else %}
<p class="content italic_font">
{{ _('This site did not provide any description.')|safe }}
</p>
{% endif -%}
</p>
{{- result_sub_footer(result, proxify) -}}
{% if result.embedded -%}
<div id="result-video-{{ index }}" class="invisible">