mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
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:
parent
d51e63ecef
commit
b3af80b15c
@ -1,4 +1,4 @@
|
|||||||
{% extends "app-subsubmenu.html" %}
|
{% extends "app.html" %}
|
||||||
{% comment %}
|
{% comment %}
|
||||||
#
|
#
|
||||||
# This file is part of FreedomBox.
|
# This file is part of FreedomBox.
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{% extends "app-subsubmenu.html" %}
|
{% extends "app.html" %}
|
||||||
{% comment %}
|
{% comment %}
|
||||||
#
|
#
|
||||||
# This file is part of FreedomBox.
|
# This file is part of FreedomBox.
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
{% extends "app-subsubmenu.html" %}
|
{% extends "app.html" %}
|
||||||
{% comment %}
|
{% comment %}
|
||||||
#
|
#
|
||||||
# This file is part of FreedomBox.
|
# This file is part of FreedomBox.
|
||||||
|
|||||||
@ -35,19 +35,23 @@ from plinth.modules import storage
|
|||||||
from . import get_configuration
|
from . import get_configuration
|
||||||
from .forms import SnapshotForm
|
from .forms import SnapshotForm
|
||||||
|
|
||||||
subsubmenu = [{
|
subsubmenu = [
|
||||||
'url': reverse_lazy('snapshot:index'),
|
{
|
||||||
'text': ugettext_lazy('Configure')
|
'url': reverse_lazy('snapshot:index'),
|
||||||
}, {
|
'text': ugettext_lazy('Configure')
|
||||||
'url': reverse_lazy('snapshot:manage'),
|
},
|
||||||
'text': ugettext_lazy('Manage Snapshots')
|
{
|
||||||
}]
|
'url': reverse_lazy('snapshot:manage'),
|
||||||
|
'text': ugettext_lazy('Manage Snapshots')
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def not_supported_view(request):
|
def not_supported_view(request):
|
||||||
"""Show that snapshots are not supported on the system."""
|
"""Show that snapshots are not supported on the system."""
|
||||||
template_data = {
|
template_data = {
|
||||||
'title': snapshot_module.name,
|
'title': snapshot_module.name,
|
||||||
|
'name': snapshot_module.name,
|
||||||
'description': snapshot_module.description,
|
'description': snapshot_module.description,
|
||||||
'fs_type': storage.get_filesystem_type(),
|
'fs_type': storage.get_filesystem_type(),
|
||||||
'fs_types_supported': snapshot_module.fs_types_supported,
|
'fs_types_supported': snapshot_module.fs_types_supported,
|
||||||
@ -72,13 +76,15 @@ def index(request):
|
|||||||
else:
|
else:
|
||||||
form = SnapshotForm(initial=status)
|
form = SnapshotForm(initial=status)
|
||||||
|
|
||||||
return TemplateResponse(request, 'snapshot.html', {
|
return TemplateResponse(
|
||||||
'title': snapshot_module.name,
|
request, 'snapshot.html', {
|
||||||
'description': snapshot_module.description,
|
'title': snapshot_module.name,
|
||||||
'manual_page': snapshot_module.manual_page,
|
'name': snapshot_module.name,
|
||||||
'subsubmenu': subsubmenu,
|
'description': snapshot_module.description,
|
||||||
'form': form
|
'manual_page': snapshot_module.manual_page,
|
||||||
})
|
'subsubmenu': subsubmenu,
|
||||||
|
'form': form
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
def manage(request):
|
def manage(request):
|
||||||
@ -104,6 +110,7 @@ def manage(request):
|
|||||||
return TemplateResponse(
|
return TemplateResponse(
|
||||||
request, 'snapshot_manage.html', {
|
request, 'snapshot_manage.html', {
|
||||||
'title': snapshot_module.name,
|
'title': snapshot_module.name,
|
||||||
|
'name': snapshot_module.name,
|
||||||
'description': snapshot_module.description,
|
'description': snapshot_module.description,
|
||||||
'manual_page': snapshot_module.manual_page,
|
'manual_page': snapshot_module.manual_page,
|
||||||
'snapshots': snapshots,
|
'snapshots': snapshots,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user