From 9fda18b859ab8e59f7999ff42ba7a5200e49e614 Mon Sep 17 00:00:00 2001
From: Nektarios Katakis
Date: Sun, 16 Feb 2020 14:59:35 +0000
Subject: [PATCH] networks: Show internet connectivity string in main page
Closes: #1558
Signed-off-by: Nektarios Katakis
Reviewed-by: Sunil Mohan Adapa
---
plinth/modules/networks/networks.py | 4 +++-
.../templates/internet_connectivity_main.html | 11 +++++++++--
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/plinth/modules/networks/networks.py b/plinth/modules/networks/networks.py
index 56d58234e..3375f3749 100644
--- a/plinth/modules/networks/networks.py
+++ b/plinth/modules/networks/networks.py
@@ -35,7 +35,9 @@ def index(request):
'title': _('Network Connections'),
'has_diagnostics': True,
'is_enabled': True,
- 'connections': connections
+ 'connections': connections,
+ 'internet_connectivity_type': kvstore.get_default(
+ networks.INTERNET_CONNECTION_TYPE_KEY, "dynamic_public_ip")
})
diff --git a/plinth/modules/networks/templates/internet_connectivity_main.html b/plinth/modules/networks/templates/internet_connectivity_main.html
index c275e9e9c..8558cf184 100644
--- a/plinth/modules/networks/templates/internet_connectivity_main.html
+++ b/plinth/modules/networks/templates/internet_connectivity_main.html
@@ -18,10 +18,17 @@
{% endblocktrans %}
-
+