mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
See #1841 for discussion on why Turbolinks needs to be removed. Closes: #1841. Closes: #1804. Tests performed: - There are no more references to 'turbolinks' in source code other than .po(t) files and the manual. - When loading a page, turbolinks.js is no longer loaded. - The following links don't have data-turbolinks attribute and work well when clicked.a - Gitweb repository links - Download manual links (en, es) - Ikiwiki wiki links - Sharing app web share links - TT-RSS mobile app link - 'Launch web client' button - 'Launch' button in web section of clients table - Active and regular front page shortcut - Roundcube does not have a link to /roundcube in description. - turblinks not present in /static/jslicense.html . LibreJs accepts all scripts. Reported-by: Veiko Aasa <veiko17@disroot.org> Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Tested-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
30 lines
972 B
HTML
30 lines
972 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-toggle="collapse" data-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 %}
|