UI: Improve multi OS display #205

Merged
Oleg-Komarov merged 40 commits from ui/multi-os into main 2024-07-16 07:24:07 +02:00
Showing only changes of commit e7bb6a8b2b - Show all commits

View File

@ -75,16 +75,12 @@
<dt>Downloads</dt>
<dd>{{ version.download_count }}</dd>
</div>
<div class="dl-col">
<dt>Size</dt>
{% if version.has_single_file %}
<dd>{{ version.files.first.size_bytes|filesizeformat }}</dd>
{% else %}
{% for file in version.files.all %}
<dd>{{ file.size_bytes|filesizeformat }} ({{ file.get_platforms|join:", " }})</dd>
{% endfor %}
{% endif %}
</div>
{% if version.has_single_file %}
<div class="dl-col">
<dt>Size</dt>
<dd>{{ version.files.first.size_bytes|filesizeformat }}</dd>
</div>
{% endif %}
</div>
<div class="dl-row">
<div class="dl-col">