mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
backups: Add title and description to other pages
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
3be15a87e6
commit
f15505e6f4
@ -1,4 +1,4 @@
|
||||
{% extends "base.html" %}
|
||||
{% extends "service-subsubmenu.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of FreedomBox.
|
||||
@ -21,9 +21,7 @@
|
||||
{% load bootstrap %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h3>{{ title }}</h3>
|
||||
{% block configuration %}
|
||||
|
||||
<form class="form" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
{% extends "base.html" %}
|
||||
{% extends "service-subsubmenu.html" %}
|
||||
{% comment %}
|
||||
#
|
||||
# This file is part of FreedomBox.
|
||||
@ -24,12 +24,13 @@
|
||||
{% block page_head %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% block configuration %}
|
||||
|
||||
<h3>{{ title }}</h3>
|
||||
<p>
|
||||
{% blocktrans %}
|
||||
You can choose the apps you wish to import after uploading a backup file.
|
||||
Upload a backup file downloaded from another {{ box_name }} to restore is
|
||||
contents. You can choose the apps you wish to restore after uploading a
|
||||
backup file.
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
<div class="alert alert-warning" role="alert">
|
||||
|
||||
@ -85,7 +85,8 @@ class CreateArchiveView(SuccessMessageMixin, FormView):
|
||||
def get_context_data(self, **kwargs):
|
||||
"""Return additional context for rendering the template."""
|
||||
context = super().get_context_data(**kwargs)
|
||||
context['title'] = _('New Backup')
|
||||
context['title'] = backups.name
|
||||
context['description'] = backups.description
|
||||
context['subsubmenu'] = subsubmenu
|
||||
return context
|
||||
|
||||
@ -130,7 +131,8 @@ class UploadArchiveView(SuccessMessageMixin, FormView):
|
||||
def get_context_data(self, **kwargs):
|
||||
"""Return additional context for rendering the template."""
|
||||
context = super().get_context_data(**kwargs)
|
||||
context['title'] = _('Upload and restore a backup file')
|
||||
context['title'] = backups.name
|
||||
context['description'] = backups.description
|
||||
context['subsubmenu'] = subsubmenu
|
||||
try:
|
||||
disk_info = storage.get_disk_info('/')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user