Multi-platform: support multiple files per version #201
@ -5,7 +5,7 @@
|
|||||||
<div class="dl-col">
|
<div class="dl-col">
|
||||||
<dt>{% trans "Supported Platforms" %}</dt>
|
<dt>{% trans "Supported Platforms" %}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<ul class="mb-0">
|
<ul class="mb-0 ps-3">
|
||||||
{% for p in version.platforms.all %}
|
{% for p in version.platforms.all %}
|
||||||
<li>{{p.name}}</li>
|
<li>{{p.name}}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -190,9 +190,16 @@
|
|||||||
{% if latest.single_file %}
|
{% if latest.single_file %}
|
||||||
<dd>{{ latest.files.first.size_bytes|filesizeformat }}</dd>
|
<dd>{{ latest.files.first.size_bytes|filesizeformat }}</dd>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<dd>
|
||||||
|
<ul class="ps-3">
|
||||||
{% for file in latest.files.all %}
|
{% for file in latest.files.all %}
|
||||||
<dd>{{ file.size_bytes|filesizeformat }} ({{ file.get_platforms|join:", " }})</dd>
|
<li class="lh-sm">
|
||||||
|
{{ file.size_bytes|filesizeformat }}<br>
|
||||||
|
<span class="fs-sm text-muted">({{ file.get_platforms|join:", " }})</span>
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</dd>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user