mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +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:
1 parent
d51e63ecef
commit
b3af80b15c
4 files changed
+24
-17
No files matched your search
@@ -1,4 +1,4 @@
|
||||
{% extends "app-subsubmenu.html" %}
|
||||
{% extends "app.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of FreedomBox.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "app-subsubmenu.html" %}
|
||||
{% extends "app.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of FreedomBox.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% extends "app-subsubmenu.html" %}
|
||||
{% extends "app.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of FreedomBox.
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user