mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +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
|
||||
|
||||
manual_page = 'Backups'
|
||||
|
||||
MANIFESTS_FOLDER = '/var/lib/plinth/backups-manifests/'
|
||||
ROOT_REPOSITORY = '/var/lib/freedombox/borgbackup'
|
||||
ROOT_REPOSITORY_NAME = format_lazy(_('{box_name} storage'),
|
||||
|
||||
@ -67,10 +67,11 @@ class IndexView(TemplateView):
|
||||
context = super().get_context_data(**kwargs)
|
||||
context['title'] = backups.name
|
||||
context['description'] = backups.description
|
||||
context['subsubmenu'] = subsubmenu
|
||||
context['manual_page'] = backups.manual_page
|
||||
root_repository = BorgRepository(ROOT_REPOSITORY)
|
||||
context['root_repository'] = root_repository.get_view_content()
|
||||
context['ssh_repositories'] = get_ssh_repositories()
|
||||
context['subsubmenu'] = subsubmenu
|
||||
return context
|
||||
|
||||
|
||||
@ -88,6 +89,7 @@ class CreateArchiveView(SuccessMessageMixin, FormView):
|
||||
context['title'] = backups.name
|
||||
context['description'] = backups.description
|
||||
context['subsubmenu'] = subsubmenu
|
||||
context['manual_page'] = backups.manual_page
|
||||
return context
|
||||
|
||||
def form_valid(self, form):
|
||||
@ -134,6 +136,7 @@ class UploadArchiveView(SuccessMessageMixin, FormView):
|
||||
context['title'] = backups.name
|
||||
context['description'] = backups.description
|
||||
context['subsubmenu'] = subsubmenu
|
||||
context['manual_page'] = backups.manual_page
|
||||
try:
|
||||
disk_info = storage.get_disk_info('/')
|
||||
except PlinthError as exception:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user