mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
names: Add description
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
be46542f87
commit
ccc4bd120b
@ -22,8 +22,10 @@ import logging
|
|||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
|
from plinth import cfg
|
||||||
from plinth.menu import main_menu
|
from plinth.menu import main_menu
|
||||||
from plinth.signals import domain_added, domain_removed
|
from plinth.signals import domain_added, domain_removed
|
||||||
|
from plinth.utils import format_lazy
|
||||||
|
|
||||||
from .manifest import backup
|
from .manifest import backup
|
||||||
|
|
||||||
@ -46,6 +48,15 @@ logger = logging.getLogger(__name__)
|
|||||||
|
|
||||||
manual_page = 'NameServices'
|
manual_page = 'NameServices'
|
||||||
|
|
||||||
|
description = [
|
||||||
|
format_lazy(
|
||||||
|
_('Name Services provides an overview of the ways {box_name} can be '
|
||||||
|
'reached from the public Internet: domain name, Tor hidden service, '
|
||||||
|
'and Pagekite. For each type of name, it is shown whether the HTTP, '
|
||||||
|
'HTTPS, and SSH services are enabled or disabled for incoming '
|
||||||
|
'connections through the given name.'), box_name=(cfg.box_name))
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
"""Initialize the names module."""
|
"""Initialize the names module."""
|
||||||
|
|||||||
@ -31,11 +31,13 @@ def index(request):
|
|||||||
"""Serve name services page."""
|
"""Serve name services page."""
|
||||||
status = get_status()
|
status = get_status()
|
||||||
|
|
||||||
return TemplateResponse(request, 'names.html', {
|
return TemplateResponse(
|
||||||
'title': names.name,
|
request, 'names.html', {
|
||||||
'manual_page': names.manual_page,
|
'title': names.name,
|
||||||
'status': status
|
'description': names.description,
|
||||||
})
|
'manual_page': names.manual_page,
|
||||||
|
'status': status
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
def get_status():
|
def get_status():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user