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 dce674e5ab - Show all commits

View File

@ -115,9 +115,23 @@
<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"> <a href="{{ download_item.url }}" download="{{ download_item.name }}" class="btn btn-primary btn-block text-start">
<i class="i-download"></i> <span>
<span>{% trans 'Download' %} v{{ version.version }} {{ download_item.platform }}</span> {% with platform=download_item.platform %}
{% if platform == "linux-x64" %}
<i class="i-linux me-1"></i> Linux
{% elif platform == "macos-arm64" %}
<i class="i-macos me-1"></i> macOS Apple Silicon
{% elif platform == "macos-x64" %}
<i class="i-macos me-1"></i> macOS Intel
{% elif platform == "windows-arm64" %}
<i class="i-windows me-1"></i> Windows ARM
{% elif platform == "windows-x64" %}
<i class="i-windows me-1"></i> Windows
{% endif %}
{% endwith %}
v{{ version.version }}</span>
</a> </a>
{% endfor %} {% endfor %}
{% endwith %} {% endwith %}