UI: Improve multi OS display #205
@ -280,24 +280,29 @@
|
||||
{% for download_item in download_list %}
|
||||
<div class="btn-install-action-item js-btn-install-action-item" data-install-url="{{ request.scheme }}://{{ request.get_host }}{{ download_item.url }}" data-platform="{{ download_item.platform }}" download="{{ download_item.name }}">
|
||||
<div class="btn-install-drag-group js-btn-install-drag-group mb-2 rounded">
|
||||
<button class="btn btn-flex btn-primary btn-install-drag cursor-move js-btn-install-drag w-100" draggable="true">
|
||||
<button class="btn btn-flex btn-primary btn-install-drag cursor-move js-btn-install-drag mb-2 w-100" draggable="true">
|
||||
<i class="i-move"></i>
|
||||
<span>{% trans 'Drag and Drop into Blender' %}
|
||||
{% with platform=download_item.platform %}
|
||||
{% if platform == "linux-x64" %}
|
||||
<i class="i-linux"></i>
|
||||
{% elif platform == "macos-arm64" %}
|
||||
<i class="i-macos"></i>
|
||||
{% elif platform == "macos-x64" %}
|
||||
<i class="i-macos"></i>
|
||||
{% elif platform == "windows-arm64" %}
|
||||
<i class="i-windows"></i>
|
||||
{% elif platform == "windows-x64" %}
|
||||
<i class="i-windows"></i>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</span>
|
||||
</button>
|
||||
<div class="text-center">
|
||||
<strong>
|
||||
{% with platform=download_item.platform %}
|
||||
{% if platform == "linux-x64" %}
|
||||
Linux
|
||||
{% elif platform == "macos-arm64" %}
|
||||
macOS <span class="fw-normal"> - Apple Silicon</span>
|
||||
{% elif platform == "macos-x64" %}
|
||||
macOS <span class="fw-normal"> - Intel</span>
|
||||
{% elif platform == "windows-arm64" %}
|
||||
Windows <span class="fw-normal"> - ARM</span>
|
||||
{% elif platform == "windows-x64" %}
|
||||
Windows
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{# TODO: fix file active size #}
|
||||
</strong> – {{ download_item.size_bytes|filesizeformat }}
|
||||
</div>
|
||||
</div>
|
||||
<small class="d-block text-center w-100">
|
||||
{# TODO @front-end: Replace URL of the manual /dev/ with /latest/. #}
|
||||
@ -307,9 +312,9 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="dropdown js-dropdown-all-versions-wrapper pt-3">
|
||||
<button class="btn dropdown-toggle js-dropdown-toggle w-100" data-toggle-menu-id="js-dropdown-all-versions">
|
||||
<i class="i-download me-1"></i> {% trans 'All versions' %}<i class="i-chevron-down"></i>
|
||||
<div class="dropdown js-dropdown-all-versions-wrapper">
|
||||
<button class="btn btn-link dropdown-toggle js-dropdown-toggle w-100" data-toggle-menu-id="js-dropdown-all-versions">
|
||||
</i> {% trans 'Other versions' %}<i class="i-chevron-down"></i>
|
||||
</button>
|
||||
<ul class="dropdown-menu js-dropdown-menu w-100" id="js-dropdown-all-versions">
|
||||
{% for download_item in download_list %}
|
||||
|
Loading…
Reference in New Issue
Block a user