Sfoglia il codice sorgente

Scientific accuracy

Cqoicebordel 10 anni fa
parent
commit
824208491a
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4
    4
      searx/templates/oscar/result_templates/torrent.html

+ 4
- 4
searx/templates/oscar/result_templates/torrent.html Vedi File

@@ -11,10 +11,10 @@
11 11
 {% if result.filesize %}<br />{{ icon('floppy-disk') }} {{ _('Filesize') }} 
12 12
     <span class="badge">
13 13
         {% if result.filesize < 1024 %}{{ result.filesize }} {{ _('Bytes') }}
14
-        {% elif result.filesize < 1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024) }} {{ _('kB') }}
15
-        {% elif result.filesize < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024) }} {{ _('MB') }}
16
-        {% elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} {{ _('GB') }}
17
-        {% else %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024/1024) }} {{ _('TB') }}{% endif %}
14
+        {% elif result.filesize < 1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024) }} {{ _('kiB') }}
15
+        {% elif result.filesize < 1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024) }} {{ _('MiB') }}
16
+        {% elif result.filesize < 1024*1024*1024*1024 %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024) }} {{ _('GiB') }}
17
+        {% else %}{{ '{0:0.2f}'.format(result.filesize/1024/1024/1024/1024) }} {{ _('TiB') }}{% endif %}
18 18
     </span>{% endif %}
19 19
 {% if result.files %}<br />{{ icon('file') }} {{ _('Number of Files') }} <span class="badge">{{ result.files }}</span>{% endif %}
20 20