*: Remove use of Turbolinks library

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>
This commit is contained in:
Sunil Mohan Adapa authored and Veiko Aasa committed 2020-06-03 10:29:19 +03:00
1 parent eb88c60389
commit ac103d7132
15 files changed
+10 -67

No files matched your search

@@ -70,7 +70,6 @@
<span class="repo-label">{{ repo.name }}<span>
{% else %}
<a class="repo-label" href="/gitweb/{{ repo.name }}.git"
data-turbolinks="false"
title="{% blocktrans %}Go to repository {{ repo.name }}{% endblocktrans %}">
{{ repo.name }}
</a>
-28
View File
@@ -1,28 +0,0 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
/**
* @licstart The following is the entire license notice for the JavaScript
* code in this page.
*
* 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 <http://www.gnu.org/licenses/>.
*
* @licend The above is the entire license notice for the JavaScript code
* in this page.
*/
(function($) {
let downloadManualButton = $('a[href="/plinth/help/manual-download/"]');
downloadManualButton.attr("data-turbolinks", "false");
})(jQuery);
@@ -26,7 +26,3 @@
</a>
{{ content|safe }}
{% endblock %}
{% block page_js %}
<script type="text/javascript" src="{% static 'help/help.js' %}"></script>
{% endblock %}
@@ -36,7 +36,6 @@
</a>
<a class="wiki-label" href="/ikiwiki/{{ site.0 }}"
data-turbolinks="false"
title="{% blocktrans with site=site.1 %}Go to site {{ site }}{% endblocktrans %}">
{{ site.1 }}
</a>
+1 -2
View File
@@ -23,8 +23,7 @@ _description = [
'full functionality you expect from an email client, including '
'MIME support, address book, folder manipulation, message '
'searching and spell checking.'),
_('You can access Roundcube from <a href="/roundcube" data-turbolinks='
'"false">/roundcube</a>. Provide the username and password of the email '
_('You can use it by providing the username and password of the email '
'account you wish to access followed by the domain name of the '
'IMAP server for your email provider, like <code>imap.example.com'
'</code>. For IMAP over SSL (recommended), fill the server field '
+2 -4
View File
@@ -18,10 +18,8 @@ managed_packages = ['shaarli']
_description = [
_('Shaarli allows you to save and share bookmarks.'),
_('When enabled, Shaarli will be available from <a href="/shaarli" '
'data-turbolinks="false">/shaarli</a> path on the web server. Note that '
'Shaarli only supports a single user account, which you will need to '
'setup on the initial visit.'),
_('Note that Shaarli only supports a single user account, which you will '
'need to setup on the initial visit.'),
]
app = None
@@ -48,8 +48,7 @@
<td class="share-name">{{ share.name }}</td>
<td class="share-path">{{ share.path }}</td>
<td class="share-url">
<a href="{{ share.url }}" title="{{ share.url}}"
data-turbolinks="false">
<a href="{{ share.url }}" title="{{ share.url}}">
{{ share.url }}
</a>
</td>
+1 -2
View File
@@ -35,8 +35,7 @@ _description = [
box_name=_(cfg.box_name), users_url=reverse_lazy('users:index')),
format_lazy(
_('When using a mobile or desktop application for Tiny Tiny RSS, use '
'the URL <a href="/tt-rss-app/" data-turbolinks="false">'
'/tt-rss-app</a> for connecting.'))
'the URL <a href="/tt-rss-app/">/tt-rss-app</a> for connecting.'))
]
app = None