mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
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:
parent
69663df5c6
commit
1db28dba0e
@ -1,4 +1,4 @@
|
||||
{% extends "simple_app.html" %}
|
||||
{% extends "app.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of FreedomBox.
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user