mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
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:
parent
902851252a
commit
d6c0b98375
@ -29,7 +29,7 @@ from plinth.modules.firewall.components import Firewall
|
|||||||
from plinth.modules.i2p.resources import FAVORITES
|
from plinth.modules.i2p.resources import FAVORITES
|
||||||
from plinth.modules.users import register_group
|
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
|
version = 1
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class I2PApp(app_module.App):
|
|||||||
is_external=True)
|
is_external=True)
|
||||||
self.add(firewall)
|
self.add(firewall)
|
||||||
|
|
||||||
firewall = Firewall('firewall-i2p-proxies', name,
|
firewall = Firewall('firewall-i2p-proxies', _('I2P Proxy'),
|
||||||
ports=tunnels_to_manage.values(),
|
ports=tunnels_to_manage.values(),
|
||||||
is_external=False)
|
is_external=False)
|
||||||
self.add(firewall)
|
self.add(firewall)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{% extends "app-subsubmenu.html" %}
|
{% extends "app.html" %}
|
||||||
{% comment %}
|
{% comment %}
|
||||||
#
|
#
|
||||||
# This file is part of FreedomBox.
|
# This file is part of FreedomBox.
|
||||||
@ -22,34 +22,6 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% block configuration %}
|
{% 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>
|
<h3>{% trans "Configuration" %}</h3>
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{% extends "app-subsubmenu.html" %}
|
{% extends "app.html" %}
|
||||||
{% comment %}
|
{% comment %}
|
||||||
#
|
#
|
||||||
# This file is part of FreedomBox.
|
# This file is part of FreedomBox.
|
||||||
|
|||||||
@ -71,6 +71,7 @@ class ServiceBaseView(TemplateView):
|
|||||||
"""Add context data for template."""
|
"""Add context data for template."""
|
||||||
context = super().get_context_data(**kwargs)
|
context = super().get_context_data(**kwargs)
|
||||||
context['title'] = i2p.name
|
context['title'] = i2p.name
|
||||||
|
context['name'] = i2p.name
|
||||||
context['description'] = i2p.description
|
context['description'] = i2p.description
|
||||||
context['clients'] = i2p.clients
|
context['clients'] = i2p.clients
|
||||||
context['manual_page'] = i2p.manual_page
|
context['manual_page'] = i2p.manual_page
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user