monkeysphere: Use app.html instead of simple_app.html

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:13:27 -08:00 committed by James Valleroy
parent 69663df5c6
commit 1db28dba0e
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{% extends "simple_app.html" %}
{% extends "app.html" %}
{% comment %}
#
# This file is part of FreedomBox.

View File

@ -40,6 +40,7 @@ def index(request):
return TemplateResponse(
request, 'monkeysphere.html', {
'title': monkeysphere.name,
'name': monkeysphere.name,
'description': monkeysphere.description,
'status': status,
'manual_page': monkeysphere.manual_page,
@ -53,9 +54,9 @@ def import_key(request, ssh_fingerprint):
keys = get_keys()
available_domains = keys[ssh_fingerprint]['available_domains']
try:
actions.superuser_run(
'monkeysphere',
['host-import-key', ssh_fingerprint] + list(available_domains))
actions.superuser_run('monkeysphere',
['host-import-key', ssh_fingerprint] +
list(available_domains))
messages.success(request, _('Imported key.'))
except actions.ActionError as exception:
messages.error(request, str(exception))