diff --git a/plinth/modules/names/__init__.py b/plinth/modules/names/__init__.py index 8f9fd8488..d2c5e9565 100644 --- a/plinth/modules/names/__init__.py +++ b/plinth/modules/names/__init__.py @@ -31,8 +31,14 @@ SERVICES = ( ('ssh', _('SSH'), 22), ) +version = 1 + +is_essential = True + depends = ['system'] +title = _('Name Services') + domain_types = {} domains = {} @@ -42,8 +48,7 @@ logger = logging.getLogger(__name__) def init(): """Initialize the names module.""" menu = cfg.main_menu.get('system:index') - menu.add_urlname(_('Name Services'), 'glyphicon-tag', - 'names:index', 19) + menu.add_urlname(title, 'glyphicon-tag', 'names:index', 19) domain_added.connect(on_domain_added) domain_removed.connect(on_domain_removed) @@ -54,6 +59,7 @@ def on_domain_added(sender, domain_type, name='', description='', """Add domain to global list.""" if not domain_type: return + domain_types[domain_type] = description if not name: diff --git a/plinth/modules/names/templates/names.html b/plinth/modules/names/templates/names.html index fffc51897..bbdc0107b 100644 --- a/plinth/modules/names/templates/names.html +++ b/plinth/modules/names/templates/names.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "app.html" %} {% comment %} # # This file is part of Plinth. @@ -21,9 +21,7 @@ {% load bootstrap %} {% load i18n %} -{% block content %} - -