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 authored and James Valleroy committed 2019-12-01 16:40:47 -05:00
1 parent 69663df5c6
commit 1db28dba0e
2 files changed
+5 -4

No files matched your search

@@ -1,4 +1,4 @@
{% extends "simple_app.html" %}
{% extends "app.html" %}
{% comment %}
#
# This file is part of FreedomBox.
+4 -3
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))