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>
<dd>{{ extension.download_count }}</dd>
</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">
{{ file.size_bytes|filesizeformat }}<br>
<span class="fs-sm text-muted">({{ file.get_platforms|join:", " }})</span>
</li>
{% endfor %}
</ul>
</dd>
{% endif %}
</div>
{% if latest.has_single_file %}
<div class="dl-col">
<dt>{% trans 'Size' %}</dt>
<dd>{{ latest.files.first.size_bytes|filesizeformat }}</dd>
</div>
{% endif %}
</div>
<div class="dl-row">