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 authored and James Valleroy committed 2019-02-07 19:12:04 -05:00
1 parent f15505e6f4
commit ff8d85a88f
2 files changed
+6 -1

No files matched your search

+2
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'),
+4 -1
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: