mirror of
https://github.com/searxng/searxng.git
synced 2024-11-23 04:27:46 +01:00
[enh] display filesize greater 1TB
This commit is contained in:
parent
08f820d74c
commit
eb6f3348c4
@ -11,7 +11,8 @@
|
|||||||
{% if result.filesize < 1024 %}{{ result.filesize }} Byte
|
{% if result.filesize < 1024 %}{{ result.filesize }} Byte
|
||||||
{% elif result.filesize < 1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024) }} kb
|
{% elif result.filesize < 1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024) }} kb
|
||||||
{% elif result.filesize < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024) }} MB
|
{% elif result.filesize < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024) }} MB
|
||||||
{% elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} GB{% endif %}
|
{% elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} GB
|
||||||
|
{% else %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024/1024) }} TB{% endif %}
|
||||||
</span>{% endif %}
|
</span>{% endif %}
|
||||||
{% if result.files %}</br>{{ icon('file') }} {{ _('Number of Files') }} <span class="badge">{{ result.files }}</span>{% endif %}</p>
|
{% if result.files %}</br>{{ icon('file') }} {{ _('Number of Files') }} <span class="badge">{{ result.files }}</span>{% endif %}</p>
|
||||||
<p class="result-content">
|
<p class="result-content">
|
||||||
|
Loading…
Reference in New Issue
Block a user