mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
networks: Show internet connectivity string in main page
Closes: #1558 Signed-off-by: Nektarios Katakis <iam@nektarioskatakis.xyz> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
5e6d6d1cd1
commit
9fda18b859
@ -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")
|
||||
})
|
||||
|
||||
|
||||
|
||||
@ -18,10 +18,17 @@
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
|
||||
<div class="btn-toolbar">
|
||||
<p>
|
||||
{% if internet_connectivity_type == "static_public_ip" %}
|
||||
My ISP provides a public IP address that does not change over time.
|
||||
{% elif internet_connectivity_type == "dynamic_public_ip" %}
|
||||
My ISP provides a public IP address that may change over time.
|
||||
{% else %}
|
||||
I don't have a public IP address.
|
||||
{% endif %}
|
||||
<a href="{% url 'networks:internet_connection_type_setup' %}" class="btn btn-default"
|
||||
role="button" title="{% trans 'Update...' %}">
|
||||
<span class="fa" aria-hidden="true"></span>
|
||||
{% trans 'Update...' %}
|
||||
</a>
|
||||
</div>
|
||||
</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user