UI: Improve multi OS display #205
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user