{% comment %} # SPDX-License-Identifier: AGPL-3.0-or-later {% endcomment %} {% load i18n %} {% load extras %} {% load static %} {% if clients %}
{% with clients|clients_of_type:'web' as web_clients %} {% for client in web_clients %} {% if forloop.counter == 1 %} {% endif %} {% for platform in client.platforms %} {% if platform.type == 'web' %} {% endif %} {% endfor %} {% endfor %} {% endwith %} {% with clients|clients_of_type:'desktop' as desktop_clients %} {% for client in desktop_clients %} {% if forloop.counter == 1 %} {% endif %} {% endfor %} {% endwith %} {% with clients|clients_of_type:'mobile' as mobile_clients %} {% for client in mobile_clients %} {% if forloop.counter == 1 %} {% endif %} {% endfor %} {% endwith %} {% with clients|clients_of_type:'package' as package_clients %} {% for client in package_clients %} {% if forloop.counter == 1 %} {% endif %} {% endfor %} {% endwith %}
{% trans "Web" %}{{ client.name }} {% trans "Launch" %} {% icon 'external-link' %}
{% trans "Desktop" %}{{ client.name }} {% for platform in client.platforms %} {% if platform.type == 'download' %} {% if platform.os == 'gnu-linux' or platform.os == 'macos' or platform.os == 'windows' %} {% icon platform.os %} {% if platform.os == 'gnu-linux' %} {% trans 'GNU/Linux' %} {% elif platform.os == 'windows' %} {% trans 'Windows' %} {% elif platform.os == 'macos' %} {% trans 'macOS' %} {% endif %} {% endif %} {% endif %} {% endfor %}
{% trans "Mobile" %}{{ client.name }} {% for platform in client.platforms %} {% if platform.type == 'download' and platform.os == 'android' %} {% icon platform.os %} {% trans 'Android APK' %} {% endif %} {% if platform.type == 'store' and platform.os == 'android' or platform.os == 'ios' %} {% icon platform.store_name %} {% if platform.store_name == 'google-play' %} {% trans 'Play Store' %} {% elif platform.store_name == 'f-droid' %} {% trans 'F-Droid' %} {% elif platform.store_name == 'app-store' %} {% trans 'App Store' %} {% endif %} {% endif %} {% endfor %}
{% trans "Package" %}{{ client.name }} {% for platform in client.platforms %} {% if platform.type == 'package' %} {% if platform.format == 'deb' %} {% icon 'debian' %} {{ platform.name }} {% endif %} {% if platform.format == 'brew' %} {% icon 'homebrew' %} {{ platform.name }} {% endif %} {% if platform.format == 'rpm' %} {% icon 'fedora' %} {{ platform.name }} {% endif %} {% endif %} {% endfor %}
{% endif %}