diff --git a/plinth/modules/diaspora/manifest.py b/plinth/modules/diaspora/manifest.py index 9641fe8bf..0ec1578c8 100644 --- a/plinth/modules/diaspora/manifest.py +++ b/plinth/modules/diaspora/manifest.py @@ -17,9 +17,10 @@ from django.utils.translation import ugettext_lazy as _ -from plinth.utils import format_lazy -from . import get_configured_domain_name from plinth.templatetags.plinth_extras import Mobile_OS, Store +from plinth.utils import format_lazy + +from . import get_configured_domain_name clients = [{ 'name': diff --git a/plinth/modules/ejabberd/manifest.py b/plinth/modules/ejabberd/manifest.py index 8cb992adf..c35fa1767 100644 --- a/plinth/modules/ejabberd/manifest.py +++ b/plinth/modules/ejabberd/manifest.py @@ -58,8 +58,8 @@ clients = [{ 'extra security.'), 'platforms': [{ 'type': 'store', - 'os': 'iOS', - 'store_name': 'apple_store', + 'os': Mobile_OS.IOS.value, + 'store_name': Store.APP_STORE.value, 'url': 'https://itunes.apple.com/us/app/chatsecure' '/id464200063 ' }] diff --git a/plinth/modules/infinoted/manifest.py b/plinth/modules/infinoted/manifest.py index 9d86bb49a..72f6db676 100644 --- a/plinth/modules/infinoted/manifest.py +++ b/plinth/modules/infinoted/manifest.py @@ -17,9 +17,9 @@ from django.utils.translation import ugettext_lazy as _ +from plinth import cfg from plinth.templatetags.plinth_extras import Desktop_OS from plinth.utils import format_lazy -from plinth import cfg clients = [{ 'name': diff --git a/plinth/modules/matrixsynapse/manifest.py b/plinth/modules/matrixsynapse/manifest.py index 7839358cb..0a981ce0e 100644 --- a/plinth/modules/matrixsynapse/manifest.py +++ b/plinth/modules/matrixsynapse/manifest.py @@ -16,6 +16,7 @@ # from django.utils.translation import ugettext_lazy as _ + from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store clients = [{ diff --git a/plinth/modules/minetest/manifest.py b/plinth/modules/minetest/manifest.py index 341537561..db556ba63 100644 --- a/plinth/modules/minetest/manifest.py +++ b/plinth/modules/minetest/manifest.py @@ -16,6 +16,7 @@ # from django.utils.translation import ugettext_lazy as _ + from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store clients = [{ diff --git a/plinth/modules/mumble/manifest.py b/plinth/modules/mumble/manifest.py index f025f5cd7..f9aaf7b30 100644 --- a/plinth/modules/mumble/manifest.py +++ b/plinth/modules/mumble/manifest.py @@ -16,6 +16,7 @@ # from django.utils.translation import ugettext_lazy as _ + from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store clients = [{ @@ -38,9 +39,9 @@ clients = [{ 'name': 'mumble' }, { 'type': 'store', - 'os': 'iOS', + 'os': Mobile_OS.IOS.value, 'os_version': '>=8.0', - 'store_name': 'apple_store', + 'store_name': Store.APP_STORE.value, 'url': 'https://itunes.apple.com/us/app/mumble/id443472808' }] }, { @@ -66,9 +67,9 @@ clients = [{ _('Mumblefly'), 'platforms': [{ 'type': 'store', - 'os': 'iOS', + 'os': Mobile_OS.IOS.value, 'os_version': '>=7.0', - 'store_name': 'apple_store', + 'store_name': Store.APP_STORE.value, 'url': 'https://itunes.apple.com/dk/app/mumblefy/id858752232' }] }] diff --git a/plinth/modules/quassel/manifest.py b/plinth/modules/quassel/manifest.py index 3e02707e8..f886cd440 100644 --- a/plinth/modules/quassel/manifest.py +++ b/plinth/modules/quassel/manifest.py @@ -16,6 +16,7 @@ # from django.utils.translation import ugettext_lazy as _ + from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store clients = [{ diff --git a/plinth/modules/radicale/manifest.py b/plinth/modules/radicale/manifest.py index f0ce6a18c..3addbf01b 100644 --- a/plinth/modules/radicale/manifest.py +++ b/plinth/modules/radicale/manifest.py @@ -16,6 +16,7 @@ # from django.utils.translation import ugettext_lazy as _ + from plinth.templatetags.plinth_extras import Mobile_OS, Store clients = [{ diff --git a/plinth/modules/repro/manifest.py b/plinth/modules/repro/manifest.py index 3eee0e36b..b3b036368 100644 --- a/plinth/modules/repro/manifest.py +++ b/plinth/modules/repro/manifest.py @@ -16,6 +16,7 @@ # from django.utils.translation import ugettext_lazy as _ + from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store clients = [{ @@ -39,8 +40,8 @@ clients = [{ '.jitsi.meet ' }, { 'type': 'store', - 'os': 'iOS', - 'store_name': 'apple_store', + 'os': Mobile_OS.IOS.value, + 'store_name': Store.APP_STORE.value, 'url': 'https://itunes.apple.com/in/app/jitsi-meet/id1165103905' }, { 'type': 'download', diff --git a/plinth/modules/syncthing/manifest.py b/plinth/modules/syncthing/manifest.py index 7b94ca2b8..3ec6de5fc 100644 --- a/plinth/modules/syncthing/manifest.py +++ b/plinth/modules/syncthing/manifest.py @@ -16,6 +16,7 @@ # from django.utils.translation import ugettext_lazy as _ + from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store metadata = { diff --git a/plinth/modules/tor/manifest.py b/plinth/modules/tor/manifest.py index 295ae73cd..2216dc72c 100644 --- a/plinth/modules/tor/manifest.py +++ b/plinth/modules/tor/manifest.py @@ -16,6 +16,7 @@ # from django.utils.translation import ugettext_lazy as _ + from plinth.templatetags.plinth_extras import Desktop_OS, Mobile_OS, Store version = '7.0.6' diff --git a/plinth/modules/ttrss/manifest.py b/plinth/modules/ttrss/manifest.py index 50326d872..92cbbab5b 100644 --- a/plinth/modules/ttrss/manifest.py +++ b/plinth/modules/ttrss/manifest.py @@ -16,6 +16,7 @@ # from django.utils.translation import ugettext_lazy as _ + from plinth.templatetags.plinth_extras import Mobile_OS, Store clients = [{ diff --git a/plinth/templates/clients.html b/plinth/templates/clients.html index 5f13afba3..7d86d0bcc 100644 --- a/plinth/templates/clients.html +++ b/plinth/templates/clients.html @@ -85,7 +85,7 @@