UI: Improve multi OS display #205

Merged
Oleg-Komarov merged 40 commits from ui/multi-os into main 2024-07-16 07:24:07 +02:00
Showing only changes of commit 2ffc3ad6dd - Show all commits

View File

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