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 0fc0e58b89 - Show all commits

View File

@ -6,17 +6,17 @@
<dt>{% trans "Supported Platforms" %}</dt>
<dd>
<ul class="list-style-none mb-0 ps-0">
{% for p in version.platforms.all %}
{% with name=p.name %}
{% if name == "linux-x64" %}
{% for p in version.platforms.all|dictsort:"slug" %}
{% with slug=p.slug %}
{% if slug == "linux-x64" %}
<li><i class="i-linux"></i> Linux</li>
{% elif name == "macos-arm64" %}
{% elif slug == "macos-arm64" %}
<li><i class="i-macos"></i> macOS <span class="text-muted">Apple Silicon</span></li>
{% elif name == "macos-x64" %}
{% elif slug == "macos-x64" %}
<li><i class="i-macos"></i> macOS <span class="text-muted">Intel</span></li>
{% elif name == "windows-arm64" %}
{% elif slug == "windows-arm64" %}
<li><i class="i-windows"></i> Windows <span class="text-muted">ARM</span></li>
{% elif name == "windows-x64" %}
{% elif slug == "windows-x64" %}
<li><i class="i-windows"></i> Windows</li>
{% endif %}
{% endwith %}