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 277c951b2d - Show all commits

View File

@ -185,29 +185,13 @@
<dt>{% trans 'Downloads' %}</dt> <dt>{% trans 'Downloads' %}</dt>
<dd>{{ extension.download_count }}</dd> <dd>{{ extension.download_count }}</dd>
</div> </div>
<div class="dl-col">
<dt>{% trans 'Size' %}</dt>
{% if latest.has_single_file %}
<dd>{{ latest.files.first.size_bytes|filesizeformat }}</dd>
{% else %}
<dd>
<ul class="ps-3">
{% for file in latest.files.all %}
{% comment %}
TODOs:
- @back-end (?) show only the largest size
- @front-end remove the list
{% endcomment %}
<li class="lh-sm"> {% if latest.has_single_file %}
{{ file.size_bytes|filesizeformat }}<br> <div class="dl-col">
<span class="fs-sm text-muted">({{ file.get_platforms|join:", " }})</span> <dt>{% trans 'Size' %}</dt>
</li> <dd>{{ latest.files.first.size_bytes|filesizeformat }}</dd>
{% endfor %} </div>
</ul> {% endif %}
</dd>
{% endif %}
</div>
</div> </div>
<div class="dl-row"> <div class="dl-row">