snapshot: Use app.html instead of app-subsubmenu.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-10-01 21:44:47 -07:00 committed by James Valleroy
parent d51e63ecef
commit b3af80b15c
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
4 changed files with 24 additions and 17 deletions

View File

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

View File

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

View File

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

View File

@ -35,19 +35,23 @@ from plinth.modules import storage
from . import get_configuration
from .forms import SnapshotForm
subsubmenu = [{
'url': reverse_lazy('snapshot:index'),
'text': ugettext_lazy('Configure')
}, {
'url': reverse_lazy('snapshot:manage'),
'text': ugettext_lazy('Manage Snapshots')
}]
subsubmenu = [
{
'url': reverse_lazy('snapshot:index'),
'text': ugettext_lazy('Configure')
},
{
'url': reverse_lazy('snapshot:manage'),
'text': ugettext_lazy('Manage Snapshots')
},
]
def not_supported_view(request):
"""Show that snapshots are not supported on the system."""
template_data = {
'title': snapshot_module.name,
'name': snapshot_module.name,
'description': snapshot_module.description,
'fs_type': storage.get_filesystem_type(),
'fs_types_supported': snapshot_module.fs_types_supported,
@ -72,13 +76,15 @@ def index(request):
else:
form = SnapshotForm(initial=status)
return TemplateResponse(request, 'snapshot.html', {
'title': snapshot_module.name,
'description': snapshot_module.description,
'manual_page': snapshot_module.manual_page,
'subsubmenu': subsubmenu,
'form': form
})
return TemplateResponse(
request, 'snapshot.html', {
'title': snapshot_module.name,
'name': snapshot_module.name,
'description': snapshot_module.description,
'manual_page': snapshot_module.manual_page,
'subsubmenu': subsubmenu,
'form': form
})
def manage(request):
@ -104,6 +110,7 @@ def manage(request):
return TemplateResponse(
request, 'snapshot_manage.html', {
'title': snapshot_module.name,
'name': snapshot_module.name,
'description': snapshot_module.description,
'manual_page': snapshot_module.manual_page,
'snapshots': snapshots,