mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
30 lines
978 B
HTML
30 lines
978 B
HTML
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load i18n %}
|
|
{% load plinth_extras %}
|
|
|
|
{% if clients %}
|
|
{% with client_platforms=clients|clients_get_platforms %}
|
|
{% if client_platforms.web|length == 1 %}
|
|
<a target='_blank' rel="noopener noreferrer"
|
|
class="btn btn-primary" role="button"
|
|
{% if not enabled %} disabled="disabled"
|
|
{% else %} href="{{ client_platforms.web.0.url }}"
|
|
{% endif %}>
|
|
{% trans "Launch web client" %}
|
|
<span class="fa fa-external-link"></span>
|
|
</a>
|
|
{% endif %}
|
|
|
|
{% if client_platforms.web|length > 1 or client_platforms.other %}
|
|
<button type="button" data-bs-toggle="collapse" data-bs-target="#clients"
|
|
class="btn btn-default collapsed collapsible-button">
|
|
<span class="fa fa-chevron-right fa-fw" aria-hidden="true"></span>
|
|
{% trans "Client Apps" %}
|
|
</button>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% endif %}
|