Multi-platform: support multiple files per version #201
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user