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 21dec8d72d - Show all commits

View File

@ -5,9 +5,21 @@
<div class="dl-col">
<dt>{% trans "Supported Platforms" %}</dt>
<dd>
<ul class="mb-0 ps-3">
<ul class="list-style-none mb-0 ps-0">
{% for p in version.platforms.all %}
<li>{{p.name}}</li>
{% with name=p.name %}
{% if name == "linux-x64" %}
<li><i class="i-linux"></i> Linux</li>
{% elif name == "macos-arm64" %}
<li><i class="i-macos"></i> macOS <span class="text-muted">Apple Silicon</span></li>
{% elif name == "macos-x64" %}
<li><i class="i-macos"></i> macOS <span class="text-muted">Intel</span></li>
{% elif name == "windows-arm64" %}
<li><i class="i-windows"></i> Windows <span class="text-muted">ARM</span></li>
{% elif name == "windows-x64" %}
<li><i class="i-windows"></i> Windows</li>
{% endif %}
{% endwith %}
{% endfor %}
</ul>
</dd>