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