[simple template] format default string 'italic'

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2021-11-23 13:45:58 +01:00
parent 047d0ac6d6
commit f57a9f425d
3 changed files with 22 additions and 5 deletions

View File

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

View File

@ -5,9 +5,15 @@
{% if result.embedded -%} {% 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> <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 %} {%- endif %}
{%- if result.content %}
<p class="content"> <p class="content">
{%- if result.content %}{{ result.content|safe }}{%- else %}{{ _('This site did not provide any description.')|safe }}{% endif -%} {{ result.content|safe }}
</p> </p>
{%- else %}
<p class="content empty_element">
{{ _('This site did not provide any description.')|safe }}
</p>
{% endif -%}
{{- result_sub_footer(result, proxify) -}} {{- result_sub_footer(result, proxify) -}}
{% if result.embedded -%} {% if result.embedded -%}
<div id="result-media-{{ index }}" class="invisible"> <div id="result-media-{{ index }}" class="invisible">

View File

@ -5,8 +5,15 @@
{% if result.embedded -%} {% 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> <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 %} {%- endif %}
{%- if result.content %}
<p class="content"> <p class="content">
{%- if result.content %}{{ result.content|safe }}{%- else %}{{ _('This site did not provide any description.')|safe }}{% endif -%} {{ result.content|safe }}
</p>
{%- else %}
<p class="content italic_font">
{{ _('This site did not provide any description.')|safe }}
</p>
{% endif -%}
</p> </p>
{{- result_sub_footer(result, proxify) -}} {{- result_sub_footer(result, proxify) -}}
{% if result.embedded -%} {% if result.embedded -%}