UI: Improve multi OS display #205
@ -286,8 +286,8 @@
|
|||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
{% with platform=download_item.platform %}
|
<strong>
|
||||||
<strong>
|
{% with platform=download_item.platform %}
|
||||||
{% if platform == "linux-x64" %}
|
{% if platform == "linux-x64" %}
|
||||||
Linux
|
Linux
|
||||||
{% elif platform == "macos-arm64" %}
|
{% elif platform == "macos-arm64" %}
|
||||||
@ -299,17 +299,9 @@
|
|||||||
{% elif platform == "windows-x64" %}
|
{% elif platform == "windows-x64" %}
|
||||||
Windows
|
Windows
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</strong> –
|
{% endwith %}
|
||||||
|
{# TODO: fix file active size #}
|
||||||
{% for file in latest.files.all %}
|
</strong> – {{ download_item.size_bytes|filesizeformat }}
|
||||||
{# Pass in sliced variables to check platform match #}
|
|
||||||
{% with file_platform_base=file.get_platforms|join:", "|slice:":3" platform_base=platform|slice:":3" %}
|
|
||||||
{% if platform_base == file_platform_base %}
|
|
||||||
{{ file.size_bytes|filesizeformat }}
|
|
||||||
{% endif %}
|
|
||||||
{% endwith %}
|
|
||||||
{% endfor %}
|
|
||||||
{% endwith %}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<small class="d-block text-center w-100">
|
<small class="d-block text-center w-100">
|
||||||
|
Loading…
Reference in New Issue
Block a user