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:
Sunil Mohan Adapa 2019-01-30 17:42:43 -08:00 committed by James Valleroy
parent f15505e6f4
commit ff8d85a88f
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 6 additions and 1 deletions

View File

@ -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'),

View File

@ -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: