UI: Improve multi OS display #205
@ -115,23 +115,25 @@
|
|||||||
<div class="btn-col">
|
<div class="btn-col">
|
||||||
{% with download_list=version.get_download_list %}
|
{% with download_list=version.get_download_list %}
|
||||||
{% for download_item in download_list %}
|
{% for download_item in download_list %}
|
||||||
<a href="{{ download_item.url }}" download="{{ download_item.name }}" class="btn btn-primary btn-block text-start">
|
<a href="{{ download_item.url }}" download="{{ download_item.name }}" class="btn btn-primary btn-block d-flex justify-content-between text-start">
|
||||||
<span>
|
<span>
|
||||||
{% with platform=download_item.platform %}
|
{% with platform=download_item.platform %}
|
||||||
{% if platform.slug == "linux-x64" %}
|
{% if platform.slug == "linux-x64" %}
|
||||||
<i class="i-linux me-1"></i> Linux
|
<i class="i-linux me-1"></i> Linux
|
||||||
{% elif platform.slug == "macos-arm64" %}
|
{% elif platform.slug == "macos-arm64" %}
|
||||||
<i class="i-macos me-1"></i> macOS Apple Silicon
|
<i class="i-macos me-1"></i> macOS Apple Silicon
|
||||||
{% elif platform.slug == "macos-x64" %}
|
{% elif platform.slug == "macos-x64" %}
|
||||||
<i class="i-macos me-1"></i> macOS Intel
|
<i class="i-macos me-1"></i> macOS Intel
|
||||||
{% elif platform.slug == "windows-arm64" %}
|
{% elif platform.slug == "windows-arm64" %}
|
||||||
<i class="i-windows me-1"></i> Windows ARM
|
<i class="i-windows me-1"></i> Windows ARM
|
||||||
{% elif platform.slug == "windows-x64" %}
|
{% elif platform.slug == "windows-x64" %}
|
||||||
<i class="i-windows me-1"></i> Windows
|
<i class="i-windows me-1"></i> Windows
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
||||||
v{{ version.version }}</span>
|
v{{ version.version }}
|
||||||
|
</span>
|
||||||
|
<span>{{ download_item.size|filesizeformat }}</span>
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
Loading…
Reference in New Issue
Block a user