diff --git a/plinth/modules/deluge/manifest.py b/plinth/modules/deluge/manifest.py index cb2d542c6..87e2669b3 100644 --- a/plinth/modules/deluge/manifest.py +++ b/plinth/modules/deluge/manifest.py @@ -17,6 +17,8 @@ from django.utils.translation import ugettext_lazy as _ +from plinth.templatetags.plinth_extras import Package + clients = [{ 'name': _('Deluge'), @@ -24,10 +26,10 @@ clients = [{ _('Bittorrent client written in Python/PyGTK '), 'platforms': [{ 'type': 'web', - 'relative_path': '/deluge' + 'url': '/deluge' }, { 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'deluge', }] }] diff --git a/plinth/modules/ejabberd/manifest.py b/plinth/modules/ejabberd/manifest.py index 99356751e..7c7d6f066 100644 --- a/plinth/modules/ejabberd/manifest.py +++ b/plinth/modules/ejabberd/manifest.py @@ -18,7 +18,8 @@ from django.utils.translation import ugettext_lazy as _ from plinth.modules.jsxc import manifest as jsxc_manifest -from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store +from plinth.templatetags.plinth_extras import (Desktop_OS, Mobile_OS, Package, + Store) from plinth.utils import play_store_url yaxim_package_id = 'org.yaxim.androidclient' @@ -86,7 +87,7 @@ _clients = [{ _('Gajim'), 'platforms': [{ 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'gajim' }, { 'type': 'download', diff --git a/plinth/modules/infinoted/manifest.py b/plinth/modules/infinoted/manifest.py index 3d2fc11e1..46575399c 100644 --- a/plinth/modules/infinoted/manifest.py +++ b/plinth/modules/infinoted/manifest.py @@ -18,7 +18,7 @@ from django.utils.translation import ugettext_lazy as _ from plinth import cfg -from plinth.templatetags.plinth_extras import Desktop_OS +from plinth.templatetags.plinth_extras import Desktop_OS, Package from plinth.utils import format_lazy clients = [{ @@ -34,10 +34,10 @@ clients = [{ 'platforms': [{ 'type': 'download', 'os': Desktop_OS.WINDOWS.value, - 'url': 'http://releases.0x539.de/gobby/gobby-stable.exe' + 'url': 'https://github.com/gobby/gobby/wiki/Download' }, { 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'gobby' }] }] diff --git a/plinth/modules/jsxc/manifest.py b/plinth/modules/jsxc/manifest.py index dcfee1c40..6486c977f 100644 --- a/plinth/modules/jsxc/manifest.py +++ b/plinth/modules/jsxc/manifest.py @@ -17,12 +17,14 @@ from django.utils.translation import ugettext_lazy as _ +from plinth.templatetags.plinth_extras import Package + clients = [{ 'name': _('JSXC'), 'platforms': [{ 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'libjs-jsxc' }, { 'type': 'web', diff --git a/plinth/modules/minetest/manifest.py b/plinth/modules/minetest/manifest.py index 90332ff7d..4ed019710 100644 --- a/plinth/modules/minetest/manifest.py +++ b/plinth/modules/minetest/manifest.py @@ -17,7 +17,8 @@ from django.utils.translation import ugettext_lazy as _ -from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store +from plinth.templatetags.plinth_extras import (Desktop_OS, Mobile_OS, Package, + Store) clients = [{ 'name': @@ -40,7 +41,7 @@ clients = [{ 'url': 'https://f-droid.org/packages/net.minetest.minetest/ ' }, { 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'minetest' }] }] diff --git a/plinth/modules/mumble/manifest.py b/plinth/modules/mumble/manifest.py index c3b950bdb..5bd22f39c 100644 --- a/plinth/modules/mumble/manifest.py +++ b/plinth/modules/mumble/manifest.py @@ -17,7 +17,8 @@ from django.utils.translation import ugettext_lazy as _ -from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store +from plinth.templatetags.plinth_extras import (Desktop_OS, Mobile_OS, Package, + Store) from plinth.utils import f_droid_url, play_store_url plumble_package_id = 'com.morlunk.mumbleclient.free' @@ -35,7 +36,7 @@ clients = [{ 'url': 'https://wiki.mumble.info/wiki/Main_Page' }, { 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'mumble' }, { 'type': 'store', diff --git a/plinth/modules/quassel/manifest.py b/plinth/modules/quassel/manifest.py index 976e67769..37a2e90ec 100644 --- a/plinth/modules/quassel/manifest.py +++ b/plinth/modules/quassel/manifest.py @@ -17,7 +17,8 @@ from django.utils.translation import ugettext_lazy as _ -from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store +from plinth.templatetags.plinth_extras import (Desktop_OS, Mobile_OS, Package, + Store) from plinth.utils import play_store_url quasseldroid_package_id = 'com.iskrembilen.quasseldroid', @@ -32,7 +33,7 @@ clients = [{ 'url': quassel_download_url, }, { 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'quassel-client', }] }, { diff --git a/plinth/modules/radicale/manifest.py b/plinth/modules/radicale/manifest.py index 01029dae1..6f173e4c3 100644 --- a/plinth/modules/radicale/manifest.py +++ b/plinth/modules/radicale/manifest.py @@ -17,7 +17,7 @@ from django.utils.translation import ugettext_lazy as _ -from plinth.templatetags.plinth_extras import Mobile_OS, Store +from plinth.templatetags.plinth_extras import Mobile_OS, Package, Store from plinth.utils import play_store_url davdroid_package_id = 'at.bitfire.davdroid' @@ -41,7 +41,7 @@ clients = [{ _('GNOME Calendar'), 'platforms': [{ 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'gnome-calendar' }] }, { @@ -59,7 +59,7 @@ clients = [{ 'calendars and address books.'), 'platforms': [{ 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'evolution' }] }] diff --git a/plinth/modules/repro/manifest.py b/plinth/modules/repro/manifest.py index 9e3ed6160..6eb5b8760 100644 --- a/plinth/modules/repro/manifest.py +++ b/plinth/modules/repro/manifest.py @@ -17,7 +17,8 @@ from django.utils.translation import ugettext_lazy as _ -from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store +from plinth.templatetags.plinth_extras import (Desktop_OS, Mobile_OS, Package, + Store) from plinth.utils import play_store_url jitsi_package_id = 'org.jitsi.meet' @@ -53,7 +54,7 @@ clients = [{ 'url': jitsi_download_url }, { 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'jitsi' }, { 'type': 'download', diff --git a/plinth/modules/syncthing/manifest.py b/plinth/modules/syncthing/manifest.py index 230417da0..ccb4d1753 100644 --- a/plinth/modules/syncthing/manifest.py +++ b/plinth/modules/syncthing/manifest.py @@ -17,7 +17,8 @@ from django.utils.translation import ugettext_lazy as _ -from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store +from plinth.templatetags.plinth_extras import (Desktop_OS, Mobile_OS, Package, + Store) from plinth.utils import f_droid_url, play_store_url syncthing_package_id = 'com.nutomic.syncthingandroid' @@ -28,11 +29,11 @@ clients = [{ _('Syncthing'), 'platforms': [{ 'type': 'package', - 'format': 'deb', + 'format': Package.DEB.value, 'name': 'syncthing', }, { 'type': 'package', - 'format': 'homebrew', + 'format': Package.HOMEBREW.value, 'name': 'syncthing', }, { 'type': 'download', diff --git a/plinth/templates/clients.html b/plinth/templates/clients.html index df3bca305..83be701ee 100644 --- a/plinth/templates/clients.html +++ b/plinth/templates/clients.html @@ -170,7 +170,7 @@ {% if platform.type == 'package' and platform.format == 'deb' %}