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
3 changed files with 4 additions and 4 deletions
Showing only changes of commit b922118d93 - Show all commits

View File

@ -73,7 +73,7 @@
<dd>{{ version.files.first.size_bytes|filesizeformat }}</dd> <dd>{{ version.files.first.size_bytes|filesizeformat }}</dd>
{% else %} {% else %}
{% for file in version.files.all %} {% for file in version.files.all %}
<dd>{{ file.size_bytes|filesizeformat }} ({{ file.platforms|join:", " }})</dd> <dd>{{ file.size_bytes|filesizeformat }} ({{ file.get_platforms|join:", " }})</dd>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>

View File

@ -191,7 +191,7 @@
<dd>{{ latest.files.first.size_bytes|filesizeformat }}</dd> <dd>{{ latest.files.first.size_bytes|filesizeformat }}</dd>
{% else %} {% else %}
{% for file in latest.files.all %} {% for file in latest.files.all %}
<dd>{{ file.size_bytes|filesizeformat }} ({{ file.platforms|join:", " }})</dd> <dd>{{ file.size_bytes|filesizeformat }} ({{ file.get_platforms|join:", " }})</dd>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>

View File

@ -34,7 +34,7 @@
<li class="show-on-collapse">{{ version.files.first.size_bytes|filesizeformat }}</li> <li class="show-on-collapse">{{ version.files.first.size_bytes|filesizeformat }}</li>
{% else %} {% else %}
{% for file in version.files.all %} {% for file in version.files.all %}
<li class="show-on-collapse">{{ file.size_bytes|filesizeformat }} ({{ file.platforms|join:", " }})</li> <li class="show-on-collapse">{{ file.size_bytes|filesizeformat }} ({{ file.get_platforms|join:", " }})</li>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
<li class="show-on-collapse"><i class="i-download"></i> {{ version.download_count }}</li> <li class="show-on-collapse"><i class="i-download"></i> {{ version.download_count }}</li>
@ -79,7 +79,7 @@
<dd>{{ version.files.first.size_bytes|filesizeformat }}</dd> <dd>{{ version.files.first.size_bytes|filesizeformat }}</dd>
{% else %} {% else %}
{% for file in version.files.all %} {% for file in version.files.all %}
<dd>{{ file.size_bytes|filesizeformat }} ({{ file.platforms|join:", " }})</dd> <dd>{{ file.size_bytes|filesizeformat }} ({{ file.get_platforms|join:", " }})</dd>
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>