Multi-platform: support multiple files per version #201

Merged
Oleg-Komarov merged 43 commits from multi-os into main 2024-07-09 16:27:46 +02:00
2 changed files with 12 additions and 5 deletions
Showing only changes of commit f0837804d3 - Show all commits

View File

@ -5,7 +5,7 @@
<div class="dl-col">
<dt>{% trans "Supported Platforms" %}</dt>
<dd>
<ul class="mb-0">
<ul class="mb-0 ps-3">
{% for p in version.platforms.all %}
<li>{{p.name}}</li>
{% endfor %}

View File

@ -188,11 +188,18 @@
<div class="dl-col">
<dt>{% trans 'Size' %}</dt>
{% if latest.single_file %}
<dd>{{ latest.files.first.size_bytes|filesizeformat }}</dd>
<dd>{{ latest.files.first.size_bytes|filesizeformat }}</dd>
{% else %}
{% for file in latest.files.all %}
<dd>{{ file.size_bytes|filesizeformat }} ({{ file.get_platforms|join:", " }})</dd>
{% endfor %}
<dd>
<ul class="ps-3">
{% for file in latest.files.all %}
<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>
</div>