diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2015-01-10 19:44:08 +0100 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2015-01-10 19:44:08 +0100 |
commit | eb6f3348c43f3456fa40716589967ec8a5ec53e2 (patch) | |
tree | 2ed7b3d147cc3ead92b7a5ef1434b42e01f3a125 | |
parent | 08f820d74c7de4309fe8227da5c10e4179cef54f (diff) | |
download | searxng-eb6f3348c43f3456fa40716589967ec8a5ec53e2.tar.gz searxng-eb6f3348c43f3456fa40716589967ec8a5ec53e2.zip |
[enh] display filesize greater 1TB
-rw-r--r-- | searx/templates/oscar/result_templates/torrent.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searx/templates/oscar/result_templates/torrent.html b/searx/templates/oscar/result_templates/torrent.html index 5268869ca..9258a0cb7 100644 --- a/searx/templates/oscar/result_templates/torrent.html +++ b/searx/templates/oscar/result_templates/torrent.html @@ -11,7 +11,8 @@ {% 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*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 %}
{% if result.files %}</br>{{ icon('file') }} {{ _('Number of Files') }} <span class="badge">{{ result.files }}</span>{% endif %}</p>
<p class="result-content">
|