names: Add description

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati authored and Sunil Mohan Adapa committed 2019-03-08 14:25:19 -08:00
1 parent be46542f87
commit ccc4bd120b
2 files changed
+18 -5

No files matched your search

+11
View File
@@ -22,8 +22,10 @@ import logging
from django.utils.translation import ugettext_lazy as _
from plinth import cfg
from plinth.menu import main_menu
from plinth.signals import domain_added, domain_removed
from plinth.utils import format_lazy
from .manifest import backup
@@ -46,6 +48,15 @@ logger = logging.getLogger(__name__)
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():
"""Initialize the names module."""
+7 -5
View File
@@ -31,11 +31,13 @@ def index(request):
"""Serve name services page."""
status = get_status()
return TemplateResponse(request, 'names.html', {
'title': names.name,
'manual_page': names.manual_page,
'status': status
})
return TemplateResponse(
request, 'names.html', {
'title': names.name,
'description': names.description,
'manual_page': names.manual_page,
'status': status
})
def get_status():