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 <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-11-27 00:12:29 -08:00 committed by James Valleroy
parent a4fc1181b5
commit 69663df5c6
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{% extends "simple_app.html" %}
{% extends "app.html" %}
{% comment %}
#
# This file is part of FreedomBox.
@ -127,8 +127,6 @@
</tbody>
</table>
{% include "diagnostics_button.html" with module="letsencrypt" enabled=True %}
{% else %}
{% url 'config:index' as config_url %}
{% blocktrans trimmed %}

View File

@ -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(),
})