UI: Improve multi OS display #205
@ -6,17 +6,17 @@
|
|||||||
<dt>{% trans "Supported Platforms" %}</dt>
|
<dt>{% trans "Supported Platforms" %}</dt>
|
||||||
<dd>
|
<dd>
|
||||||
<ul class="list-style-none mb-0 ps-0">
|
<ul class="list-style-none mb-0 ps-0">
|
||||||
{% for p in version.platforms.all %}
|
{% for p in version.platforms.all|dictsort:"slug" %}
|
||||||
{% with name=p.name %}
|
{% with slug=p.slug %}
|
||||||
{% if name == "linux-x64" %}
|
{% if slug == "linux-x64" %}
|
||||||
<li><i class="i-linux"></i> Linux</li>
|
<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>
|
<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>
|
<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>
|
<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>
|
<li><i class="i-windows"></i> Windows</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
Loading…
Reference in New Issue
Block a user