UI: Improve multi OS display #205
@ -327,20 +327,23 @@
|
||||
<ul class="dropdown-menu js-dropdown-menu w-100" id="js-dropdown-all-versions">
|
||||
{% for download_item in download_list %}
|
||||
<li>
|
||||
<a class="dropdown-item" download="{{ download_item.name }}" href="{{ request.scheme }}://{{ request.get_host }}{{ download_item.url }}">
|
||||
{% with platform=download_item.platform %}
|
||||
{% if platform == "linux-x64" %}
|
||||
<i class="i-linux"></i> Linux
|
||||
{% elif platform == "macos-arm64" %}
|
||||
<i class="i-macos"></i> macOS <span class="ms-2 text-muted">Apple Silicon</span>
|
||||
{% elif platform == "macos-x64" %}
|
||||
<i class="i-macos"></i> macOS <span class="ms-2 text-muted">Intel</span>
|
||||
{% elif platform == "windows-arm64" %}
|
||||
<i class="i-windows"></i> Windows <span class="ms-2 text-muted">ARM</span>
|
||||
{% elif platform == "windows-x64" %}
|
||||
<i class="i-windows"></i> Windows
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
<a class="d-flex dropdown-item justify-content-between" download="{{ download_item.name }}" href="{{ request.scheme }}://{{ request.get_host }}{{ download_item.url }}">
|
||||
<span>
|
||||
{% with platform=download_item.platform %}
|
||||
{% if platform == "linux-x64" %}
|
||||
<i class="i-linux"></i> Linux
|
||||
{% elif platform == "macos-arm64" %}
|
||||
<i class="i-macos"></i> macOS <span class="ms-2 text-muted">Apple Silicon</span>
|
||||
{% elif platform == "macos-x64" %}
|
||||
<i class="i-macos"></i> macOS <span class="ms-2 text-muted">Intel</span>
|
||||
{% elif platform == "windows-arm64" %}
|
||||
<i class="i-windows"></i> Windows <span class="ms-2 text-muted">ARM</span>
|
||||
{% elif platform == "windows-x64" %}
|
||||
<i class="i-windows"></i> Windows
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</span>
|
||||
<span class="text-muted">{{ download_item.size|filesizeformat }}</span>
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user