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"> <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 %}

View File

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