mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
backups: Add link to manual page
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
f15505e6f4
commit
ff8d85a88f
@ -42,6 +42,8 @@ description = [
|
|||||||
|
|
||||||
service = None
|
service = None
|
||||||
|
|
||||||
|
manual_page = 'Backups'
|
||||||
|
|
||||||
MANIFESTS_FOLDER = '/var/lib/plinth/backups-manifests/'
|
MANIFESTS_FOLDER = '/var/lib/plinth/backups-manifests/'
|
||||||
ROOT_REPOSITORY = '/var/lib/freedombox/borgbackup'
|
ROOT_REPOSITORY = '/var/lib/freedombox/borgbackup'
|
||||||
ROOT_REPOSITORY_NAME = format_lazy(_('{box_name} storage'),
|
ROOT_REPOSITORY_NAME = format_lazy(_('{box_name} storage'),
|
||||||
|
|||||||
@ -67,10 +67,11 @@ class IndexView(TemplateView):
|
|||||||
context = super().get_context_data(**kwargs)
|
context = super().get_context_data(**kwargs)
|
||||||
context['title'] = backups.name
|
context['title'] = backups.name
|
||||||
context['description'] = backups.description
|
context['description'] = backups.description
|
||||||
|
context['subsubmenu'] = subsubmenu
|
||||||
|
context['manual_page'] = backups.manual_page
|
||||||
root_repository = BorgRepository(ROOT_REPOSITORY)
|
root_repository = BorgRepository(ROOT_REPOSITORY)
|
||||||
context['root_repository'] = root_repository.get_view_content()
|
context['root_repository'] = root_repository.get_view_content()
|
||||||
context['ssh_repositories'] = get_ssh_repositories()
|
context['ssh_repositories'] = get_ssh_repositories()
|
||||||
context['subsubmenu'] = subsubmenu
|
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
|
||||||
@ -88,6 +89,7 @@ class CreateArchiveView(SuccessMessageMixin, FormView):
|
|||||||
context['title'] = backups.name
|
context['title'] = backups.name
|
||||||
context['description'] = backups.description
|
context['description'] = backups.description
|
||||||
context['subsubmenu'] = subsubmenu
|
context['subsubmenu'] = subsubmenu
|
||||||
|
context['manual_page'] = backups.manual_page
|
||||||
return context
|
return context
|
||||||
|
|
||||||
def form_valid(self, form):
|
def form_valid(self, form):
|
||||||
@ -134,6 +136,7 @@ class UploadArchiveView(SuccessMessageMixin, FormView):
|
|||||||
context['title'] = backups.name
|
context['title'] = backups.name
|
||||||
context['description'] = backups.description
|
context['description'] = backups.description
|
||||||
context['subsubmenu'] = subsubmenu
|
context['subsubmenu'] = subsubmenu
|
||||||
|
context['manual_page'] = backups.manual_page
|
||||||
try:
|
try:
|
||||||
disk_info = storage.get_disk_info('/')
|
disk_info = storage.get_disk_info('/')
|
||||||
except PlinthError as exception:
|
except PlinthError as exception:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user