From 69663df5c657c2237e0827bed304f038f80b77c6 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 27 Nov 2019 00:12:29 -0800 Subject: [PATCH] letsencrypt: Use app.html instead of simple_app.html - Produce a diagnostics button using app.html code instead of a custom button. Signed-off-by: Sunil Mohan Adapa Reviewed-by: James Valleroy --- plinth/modules/letsencrypt/templates/letsencrypt.html | 4 +--- plinth/modules/letsencrypt/views.py | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plinth/modules/letsencrypt/templates/letsencrypt.html b/plinth/modules/letsencrypt/templates/letsencrypt.html index 457267dd7..564131e2d 100644 --- a/plinth/modules/letsencrypt/templates/letsencrypt.html +++ b/plinth/modules/letsencrypt/templates/letsencrypt.html @@ -1,4 +1,4 @@ -{% extends "simple_app.html" %} +{% extends "app.html" %} {% comment %} # # This file is part of FreedomBox. @@ -127,8 +127,6 @@ - {% include "diagnostics_button.html" with module="letsencrypt" enabled=True %} - {% else %} {% url 'config:index' as config_url %} {% blocktrans trimmed %} diff --git a/plinth/modules/letsencrypt/views.py b/plinth/modules/letsencrypt/views.py index 86553cc9d..e235875ea 100644 --- a/plinth/modules/letsencrypt/views.py +++ b/plinth/modules/letsencrypt/views.py @@ -39,9 +39,12 @@ def index(request): return TemplateResponse( request, 'letsencrypt.html', { 'title': letsencrypt.name, + 'name': letsencrypt.name, 'description': letsencrypt.description, 'status': status, 'manual_page': letsencrypt.manual_page, + 'diagnostics_module_name': 'letsencrypt', + 'is_enabled': letsencrypt.app.is_enabled(), })