diff --git a/plinth/modules/letsencrypt/__init__.py b/plinth/modules/letsencrypt/__init__.py index 1375ed176..bfd630c16 100644 --- a/plinth/modules/letsencrypt/__init__.py +++ b/plinth/modules/letsencrypt/__init__.py @@ -24,10 +24,34 @@ from django.utils.translation import ugettext_lazy as _ from plinth import action_utils from plinth import cfg from plinth.modules import names +from plinth.utils import format_lazy +version = 1 + +is_essential = True + depends = ['apps', 'names'] +title = _('Certificates (Let\'s Encrypt)') + +description = [ + format_lazy( + _('A digital certficate allows users of a web service to verify the ' + 'identity of the service and to securely communicate with it. ' + '{box_name} can automatically obtain and setup digital ' + 'certificates for each available domain. It does so by proving ' + 'itself to be the owner of a domain to Let\'s Encrypt, a ' + 'certficate authority (CA).'), box_name=_(cfg.box_name)), + + _('Let\'s Encrypt is a free, automated, and open certificate ' + 'authority, run for the public’s benefit by the Internet Security ' + 'Research Group (ISRG). Please read and agree with the ' + 'Let\'s Encrypt ' + 'Subscriber Agreement before using this service.') +] + + service = None @@ -38,6 +62,11 @@ def init(): 'glyphicon-lock', 'letsencrypt:index', 20) +def setup(helper, old_version=None): + """Install and configure the module.""" + helper.install(['letsencrypt']) + + def diagnose(): """Run diagnostics and return the results.""" results = [] diff --git a/plinth/modules/letsencrypt/templates/letsencrypt.html b/plinth/modules/letsencrypt/templates/letsencrypt.html index 15043bdf2..1e3e29b2a 100644 --- a/plinth/modules/letsencrypt/templates/letsencrypt.html +++ b/plinth/modules/letsencrypt/templates/letsencrypt.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "app.html" %} {% comment %} # # This file is part of Plinth. @@ -33,30 +33,7 @@ {% endblock %} -{% block content %} - -
- {% blocktrans trimmed %} - A digital certficate allows users of a web service to verify the - identity of the service and to securely communicate with it. - {{ box_name }} can automatically obtain and setup digital - certificates for each available domain. It does so by proving - itself to be the owner of a domain to Let's Encrypt, a - certficate authority (CA). - {% endblocktrans %} -
- -- {% blocktrans trimmed %} - Let's Encrypt is a free, automated, and open certificate - authority, run for the public’s benefit by the Internet Security - Research Group (ISRG). Please read and agree with the - Let's Encrypt - Subscriber Agreement before using this service. - {% endblocktrans %} -
+{% block configuration %}