i2p: Use app.html instead of app-subsubmenu.html

- Gain ability to show internal zone warning for I2P proxies.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-10-01 21:36:17 -07:00 committed by James Valleroy
parent 902851252a
commit d6c0b98375
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
4 changed files with 5 additions and 32 deletions

View File

@ -29,7 +29,7 @@ from plinth.modules.firewall.components import Firewall
from plinth.modules.i2p.resources import FAVORITES
from plinth.modules.users import register_group
from .manifest import backup, clients # noqa, pylint: disable=unused-import
from .manifest import backup, clients # noqa, pylint: disable=unused-import
version = 1
@ -97,7 +97,7 @@ class I2PApp(app_module.App):
is_external=True)
self.add(firewall)
firewall = Firewall('firewall-i2p-proxies', name,
firewall = Firewall('firewall-i2p-proxies', _('I2P Proxy'),
ports=tunnels_to_manage.values(),
is_external=False)
self.add(firewall)

View File

@ -1,4 +1,4 @@
{% extends "app-subsubmenu.html" %}
{% extends "app.html" %}
{% comment %}
#
# This file is part of FreedomBox.
@ -22,34 +22,6 @@
{% load i18n %}
{% block configuration %}
{% block status %}
{% if show_status_block %}
<h3>{% trans "Status" %}</h3>
<p class="running-status-parent">
{% with service_name=name %}
{% if is_running %}
<span class="running-status active"></span>
{% blocktrans trimmed %}
Service <em>{{ service_name }}</em> is running.
{% endblocktrans %}
{% else %}
<span class="running-status inactive"></span>
{% blocktrans trimmed %}
Service <em>{{ service_name }}</em> is not running.
{% endblocktrans %}
{% endif %}
{% endwith %}
</p>
{% endif %}
{% endblock %}
{% block diagnostics %}
{% if diagnostics_module_name %}
{% include "diagnostics_button.html" with module=diagnostics_module_name enabled=is_enabled %}
{% endif %}
{% endblock %}
{% include "port-forwarding-info.html" with service_name=title %}
<h3>{% trans "Configuration" %}</h3>

View File

@ -1,4 +1,4 @@
{% extends "app-subsubmenu.html" %}
{% extends "app.html" %}
{% comment %}
#
# This file is part of FreedomBox.

View File

@ -71,6 +71,7 @@ class ServiceBaseView(TemplateView):
"""Add context data for template."""
context = super().get_context_data(**kwargs)
context['title'] = i2p.name
context['name'] = i2p.name
context['description'] = i2p.description
context['clients'] = i2p.clients
context['manual_page'] = i2p.manual_page