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 ed3559c6b9 - Show all commits

View File

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