mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-01 09:30:29 +00:00
turbolinks: Disable turbolinks on links that don't point to /plinth/...
Fixes #1678 Signed-off-by: Veiko Aasa <veiko17@disroot.org> Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
This commit is contained in:
parent
e3e123bcbd
commit
955da6bee8
@ -54,11 +54,11 @@ description = [
|
||||
'required. A web based terminal for console operations is also '
|
||||
'available.'), box_name=_(cfg.box_name)),
|
||||
format_lazy(
|
||||
_('When enabled, Cockpit will be available from <a href="/_cockpit/">'
|
||||
'/_cockpit/</a> path on the web server. It can be accessed by '
|
||||
'<a href="{users_url}">any user</a> on {box_name} belonging to '
|
||||
'the admin group.'), box_name=_(cfg.box_name),
|
||||
users_url=reverse_lazy('users:index')),
|
||||
_('When enabled, Cockpit will be available from <a href="/_cockpit/" '
|
||||
'data-turbolinks="false">/_cockpit/</a> path on the web server. It '
|
||||
'can be accessed by <a href="{users_url}">any user</a> on '
|
||||
'{box_name} belonging to the admin group.'),
|
||||
box_name=_(cfg.box_name), users_url=reverse_lazy('users:index')),
|
||||
]
|
||||
|
||||
manual_page = 'Cockpit'
|
||||
|
||||
@ -43,9 +43,9 @@ short_description = _('BitTorrent Web Client')
|
||||
description = [
|
||||
_('Deluge is a BitTorrent client that features a Web UI.'),
|
||||
_('When enabled, the Deluge web client will be available from '
|
||||
'<a href="/deluge">/deluge</a> path on the web server. The '
|
||||
'default password is \'deluge\', but you should log in and change '
|
||||
'it immediately after enabling this service.')
|
||||
'<a href="/deluge" data-turbolinks="false">/deluge</a> path on the web '
|
||||
'server. The default password is \'deluge\', but you should log in and '
|
||||
'change it immediately after enabling this service.')
|
||||
]
|
||||
|
||||
group = ('bit-torrent', _('Download files using BitTorrent applications'))
|
||||
|
||||
@ -85,6 +85,7 @@
|
||||
<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>
|
||||
|
||||
@ -46,8 +46,9 @@ description = [
|
||||
_('ikiwiki is a simple wiki and blog application. It supports '
|
||||
'several lightweight markup languages, including Markdown, and '
|
||||
'common blogging functionality such as comments and RSS feeds. '
|
||||
'When enabled, the blogs and wikis will be available '
|
||||
'at <a href="/ikiwiki">/ikiwiki</a> (once created).'),
|
||||
'When enabled, the blogs and wikis will be available at '
|
||||
'<a href="/ikiwiki" data-turbolinks="false">/ikiwiki</a> '
|
||||
'(once created).'),
|
||||
format_lazy(
|
||||
_('Only {box_name} users in the <b>admin</b> group can <i>create</i> '
|
||||
'and <i>manage</i> blogs and wikis, but any user in the <b>wiki</b> '
|
||||
|
||||
@ -51,6 +51,7 @@
|
||||
</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>
|
||||
|
||||
@ -53,11 +53,11 @@ description = [
|
||||
'<a href="https://f-droid.org/repository/browse/?fdid=com.csipsimple"> '
|
||||
'CSipSimple</a> (for Android phones).'),
|
||||
_('<strong>Note:</strong> Before using repro, domains and users will '
|
||||
'need to be configured using the <a href="/repro/domains.html">'
|
||||
'web-based configuration panel</a>. Users in the <em>admin</em> group '
|
||||
'will be able to log in to the repro configuration panel. After setting '
|
||||
'the domain, it is required to restart the repro service. Disable the '
|
||||
'service and re-enable it.'),
|
||||
'need to be configured using the <a href="/repro/domains.html" '
|
||||
'data-turbolinks="false">web-based configuration panel</a>. Users in '
|
||||
'the <em>admin</em> group will be able to log in to the repro '
|
||||
'configuration panel. After setting the domain, it is required to '
|
||||
'restart the repro service. Disable the service and re-enable it.'),
|
||||
]
|
||||
|
||||
clients = clients
|
||||
|
||||
@ -42,8 +42,8 @@ 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">'
|
||||
'/roundcube</a>. Provide the username and password of the email '
|
||||
_('You can access Roundcube from <a href="/roundcube" data-turbolinks='
|
||||
'"false">/roundcube</a>. Provide 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 '
|
||||
|
||||
@ -37,10 +37,10 @@ short_description = _('Bookmarks')
|
||||
|
||||
description = [
|
||||
_('Shaarli allows you to save and share bookmarks.'),
|
||||
_('When enabled, Shaarli will be available from <a href="/shaarli">'
|
||||
'/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.'),
|
||||
_('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.'),
|
||||
]
|
||||
|
||||
clients = clients
|
||||
|
||||
@ -55,8 +55,9 @@ description = [
|
||||
'folders. The web interface on {box_name} is only available for '
|
||||
'users belonging to the "admin" group.'), box_name=_(cfg.box_name)),
|
||||
_('When enabled, Syncthing\'s web interface will be available from '
|
||||
'<a href="/syncthing/">/syncthing</a>. Desktop and mobile clients are '
|
||||
'also <a href="https://syncthing.net/">available</a>.'),
|
||||
'<a href="/syncthing/" data-turbolinks="false">/syncthing</a>. '
|
||||
'Desktop and mobile clients are also <a href="https://syncthing.net/">'
|
||||
'available</a>.'),
|
||||
]
|
||||
|
||||
clients = clients
|
||||
|
||||
@ -46,7 +46,8 @@ description = [
|
||||
_('BitTorrent is a peer-to-peer file sharing protocol. '
|
||||
'Transmission daemon handles Bitorrent file sharing. Note that '
|
||||
'BitTorrent is not anonymous.'),
|
||||
_('Access the web interface at <a href="/transmission">/transmission</a>.')
|
||||
_('Access the web interface at '
|
||||
'<a href="/transmission" data-turbolinks="false">/transmission</a>.')
|
||||
]
|
||||
|
||||
clients = clients
|
||||
|
||||
@ -50,12 +50,14 @@ description = [
|
||||
'close to a real desktop application as possible.'),
|
||||
format_lazy(
|
||||
_('When enabled, Tiny Tiny RSS will be available from <a href="/tt-'
|
||||
'rss">/tt-rss</a> path on the web server. It can be accessed by '
|
||||
'any <a href="{users_url}">user with a {box_name} login</a>.'),
|
||||
'rss" data-turbolinks="false">/tt-rss</a> path on the web server. '
|
||||
'It can be accessed by any <a href="{users_url}">user with a '
|
||||
'{box_name} login</a>.'),
|
||||
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/">/tt-rss-app</a> for connecting.'))
|
||||
'the URL <a href="/tt-rss-app/" data-turbolinks="false">'
|
||||
'/tt-rss-app</a> for connecting.'))
|
||||
]
|
||||
|
||||
clients = clients
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user