mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
dynamicdns: Drop about page and merge into description
Rename dynamicdns_configuration.html to dynamicdns.html. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
84a7323b42
commit
4705f1883f
@ -29,7 +29,12 @@ _description = [
|
|||||||
'<a href=\'http://gnudip2.sourceforge.net/\' target=\'_blank\'> '
|
'<a href=\'http://gnudip2.sourceforge.net/\' target=\'_blank\'> '
|
||||||
'GnuDIP</a> server. Afterwards, the server will assign your DNS name '
|
'GnuDIP</a> server. Afterwards, the server will assign your DNS name '
|
||||||
'to the new IP, and if someone from the Internet asks for your DNS '
|
'to the new IP, and if someone from the Internet asks for your DNS '
|
||||||
'name, they will get a response with your current IP address.')
|
'name, they will get a response with your current IP address.'),
|
||||||
|
_('If you are looking for a free dynamic DNS account, you may find a free '
|
||||||
|
'GnuDIP service at <a href=\'https://ddns.freedombox.org\' '
|
||||||
|
'target=\'_blank\'>ddns.freedombox.org</a> or you may find free update '
|
||||||
|
'URL based services at <a href=\'http://freedns.afraid.org/\' '
|
||||||
|
'target=\'_blank\'>freedns.afraid.org</a>.'),
|
||||||
]
|
]
|
||||||
|
|
||||||
app = None
|
app = None
|
||||||
|
|||||||
@ -3,28 +3,29 @@
|
|||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
|
{% load bootstrap %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load plinth_extras %}
|
{% load static %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% block configuration %}
|
||||||
|
<form class="form" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
|
|
||||||
<p>
|
<noscript>
|
||||||
{% blocktrans trimmed %}
|
{% blocktrans trimmed %}
|
||||||
If you are looking for a free dynamic DNS account, you may find
|
You have disabled Javascript. Dynamic form mode is disabled
|
||||||
a free GnuDIP service at <a href='https://ddns.freedombox.org'
|
and some helper functions may not work (but the main
|
||||||
target='_blank'>ddns.freedombox.org</a> or you may find
|
functionality should work).
|
||||||
free update URL based services at
|
{% endblocktrans %}
|
||||||
<a href='http://freedns.afraid.org/' target='_blank'>
|
</noscript>
|
||||||
freedns.afraid.org</a>.
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
{{ form|bootstrap }}
|
||||||
{% blocktrans trimmed %}
|
|
||||||
If your {{ box_name }} is connected behind a NAT router, don't forget
|
|
||||||
to add port forwarding for standard ports, including TCP port 80 (HTTP)
|
|
||||||
and TCP port 443 (HTTPS).
|
|
||||||
{% endblocktrans %}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
<input type="submit" class="btn btn-primary"
|
||||||
|
value="{% trans "Update setup" %}"/>
|
||||||
|
</form>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block page_js %}
|
||||||
|
<script type="text/javascript" src="{% static 'dynamicdns/dynamicdns.js' %}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@ -1,31 +0,0 @@
|
|||||||
{% extends "app.html" %}
|
|
||||||
{% comment %}
|
|
||||||
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
||||||
{% endcomment %}
|
|
||||||
|
|
||||||
{% load bootstrap %}
|
|
||||||
{% load i18n %}
|
|
||||||
{% load static %}
|
|
||||||
|
|
||||||
{% block configuration %}
|
|
||||||
<form class="form" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
|
|
||||||
<noscript>
|
|
||||||
{% blocktrans trimmed %}
|
|
||||||
You have disabled Javascript. Dynamic form mode is disabled
|
|
||||||
and some helper functions may not work (but the main
|
|
||||||
functionality should work).
|
|
||||||
{% endblocktrans %}
|
|
||||||
</noscript>
|
|
||||||
|
|
||||||
{{ form|bootstrap }}
|
|
||||||
|
|
||||||
<input type="submit" class="btn btn-primary"
|
|
||||||
value="{% trans "Update setup" %}"/>
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block page_js %}
|
|
||||||
<script type="text/javascript" src="{% static 'dynamicdns/dynamicdns.js' %}"></script>
|
|
||||||
{% endblock %}
|
|
||||||
@ -9,7 +9,6 @@ from . import views
|
|||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
re_path(r'^sys/dynamicdns/$', views.index, name='index'),
|
re_path(r'^sys/dynamicdns/$', views.index, name='index'),
|
||||||
re_path(r'^sys/dynamicdns/configure/$', views.configure, name='configure'),
|
|
||||||
re_path(r'^sys/dynamicdns/statuspage/$', views.statuspage,
|
re_path(r'^sys/dynamicdns/statuspage/$', views.statuspage,
|
||||||
name='statuspage'),
|
name='statuspage'),
|
||||||
]
|
]
|
||||||
|
|||||||
@ -23,9 +23,6 @@ EMPTYSTRING = 'none'
|
|||||||
|
|
||||||
subsubmenu = [{
|
subsubmenu = [{
|
||||||
'url': reverse_lazy('dynamicdns:index'),
|
'url': reverse_lazy('dynamicdns:index'),
|
||||||
'text': gettext_lazy('About')
|
|
||||||
}, {
|
|
||||||
'url': reverse_lazy('dynamicdns:configure'),
|
|
||||||
'text': gettext_lazy('Configure')
|
'text': gettext_lazy('Configure')
|
||||||
}, {
|
}, {
|
||||||
'url': reverse_lazy('dynamicdns:statuspage'),
|
'url': reverse_lazy('dynamicdns:statuspage'),
|
||||||
@ -34,16 +31,6 @@ subsubmenu = [{
|
|||||||
|
|
||||||
|
|
||||||
def index(request):
|
def index(request):
|
||||||
"""Serve Dynamic DNS page."""
|
|
||||||
return TemplateResponse(
|
|
||||||
request, 'dynamicdns.html', {
|
|
||||||
'app_info': dynamicdns.app.info,
|
|
||||||
'title': dynamicdns.app.info.name,
|
|
||||||
'subsubmenu': subsubmenu
|
|
||||||
})
|
|
||||||
|
|
||||||
|
|
||||||
def configure(request):
|
|
||||||
"""Serve the configuration form."""
|
"""Serve the configuration form."""
|
||||||
status = dynamicdns.get_status()
|
status = dynamicdns.get_status()
|
||||||
form = None
|
form = None
|
||||||
@ -58,7 +45,7 @@ def configure(request):
|
|||||||
form = ConfigureForm(initial=status)
|
form = ConfigureForm(initial=status)
|
||||||
|
|
||||||
return TemplateResponse(
|
return TemplateResponse(
|
||||||
request, 'dynamicdns_configure.html', {
|
request, 'dynamicdns.html', {
|
||||||
'title': _('Configure Dynamic DNS'),
|
'title': _('Configure Dynamic DNS'),
|
||||||
'app_info': dynamicdns.app.info,
|
'app_info': dynamicdns.app.info,
|
||||||
'form': form,
|
'form': form,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user