{% from 'simple/macros.html' import result_header, result_sub_header, result_sub_footer, result_footer, result_link with context %} {% from 'simple/icons.html' import icon_small %} {{- result_header(result, favicons, image_proxify) -}} {{- result_sub_header(result) -}} {%- if result.embedded -%} • {%- if result.mtype == 'audio' %}{{ icon_small('musical-notes-outline') -}} {%- elif result.mtype == 'video' %} {{ icon_small('play-outline') -}} {%- endif %} {{ _('show media') }} {%- endif -%} {%- if result.embedded -%}
{{ result.abstract|safe }}
{% endif -%} {%- if result.img_src -%}{{ result.content|safe }}
{% endif -%}{{ result.content|safe }}
{% endif -%} {%- endif -%}{{ _('Author') }} | {{ result.author|safe }} |
{{ _('Filename') }} | {{ result.filename|safe }} |
{{ _('Filesize') }} | {%- if result.size < 1024 %}{{ result.size }} {{ _('Bytes') -}} {%- elif result.size < 1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024) }} {{ _('kiB') -}} {%- elif result.size < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024/1024) }} {{ _('MiB') -}} {%- elif result.size < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.size/1024/1024/1024) }} {{ _('GiB') -}} {%- else %}{{ '{0:0.2f}'.format(result.size/1024/1024/1024/1024) }} {{ _('TiB') }}{% endif -%} |
{{ _('Date') }} | {{ result.time|safe }} |
{{ _('Type') }} | {{ result.mtype|safe }}/{{ result.subtype|safe }} |