{% comment %} # # This file is part of FreedomBox. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # {% endcomment %} {% load i18n %} {% load plinth_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" %}
{% trans "Desktop" %}{{ client.name }} {% for platform in client.platforms %} {% if platform.type == 'download' %} {% with 'theme/icons/'|add:platform.os|add:'.png' as icon %} {% if platform.os == 'gnu-linux' %} {% trans 'GNU/Linux' %} {% elif platform.os == 'windows' %} {% trans 'Windows' %} {% elif platform.os == 'macos' %} {% trans 'macOS' %} {% endif %} {% endwith %} {% endif %} {% endfor %}
{% trans "Mobile" %}{{ client.name }} {% for platform in client.platforms %} {% if platform.type == 'store' and platform.os == 'android' or platform.os == 'ios' %} {% with 'theme/icons/'|add:platform.store_name|add:'.png' as icon %} {% 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 %} {% endwith %} {% endif %} {% endfor %}
{% trans "Package" %}{{ client.name }} {% for platform in client.platforms %} {% if platform.type == 'package' %} {% if platform.format == 'deb' %}
{% trans "Debian:" %} {{ platform.name }}
{% endif %} {% if platform.format == 'brew' %}
{% trans "Homebrew:" %} {{ platform.name }}
{% endif %} {% if platform.format == 'rpm' %}

{% trans "RPM:" %} {{ platform.name }}

{% endif %} {% endif %} {% endfor %}
{% endif %}