UI: Improve multi OS display #205
@ -185,29 +185,13 @@
|
||||
<dt>{% trans 'Downloads' %}</dt>
|
||||
<dd>{{ extension.download_count }}</dd>
|
||||
</div>
|
||||
|
||||
{% if latest.has_single_file %}
|
||||
<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>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="dl-row">
|
||||
|
Loading…
Reference in New Issue
Block a user