mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-04-29 10:10:19 +00:00
Tests: - Through code changes, ensure that dist upgrade notification, updated to new release notification, privacy notification, and app installed notification show up. Ensure that they have correct hx- attributes and URL property for dismiss button. Clicking dismiss button works as expected. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Joseph Nuthalapati <njoseph@riseup.net>
46 lines
1.6 KiB
HTML
46 lines
1.6 KiB
HTML
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load i18n %}
|
|
{% load static %}
|
|
|
|
<div class="notification-title">
|
|
{% trans "Distribution Update" %}
|
|
</div>
|
|
|
|
<p>
|
|
{% url 'help:manual-page' lang='-' page='DebianUpgradeNotes' as dist_upgrade_url %}
|
|
{% if data.state == 'starting' %}
|
|
{% blocktrans trimmed %}
|
|
Distribution update has started. This operation may take several hours.
|
|
Most apps will be unavailable during this period. Don't interrupt the
|
|
process by shutting down or interrupting power to the machine.
|
|
{% endblocktrans %}
|
|
{% elif data.state == 'done' %}
|
|
{% blocktrans trimmed %}
|
|
Distribution update has completed. Reboot the machine, if necessary.
|
|
{% endblocktrans %}
|
|
{% elif data.for_days == 1 %}
|
|
{% blocktrans trimmed %}
|
|
Distribution update will start soon. Take a backup of apps and data before
|
|
then. See <a href="{{ dist_upgrade_url }}">manual</a> page for expected
|
|
changes and transitions during the distribution upgrade.
|
|
{% endblocktrans %}
|
|
{% elif data.for_days %}
|
|
{% blocktrans trimmed with in_days=data.in_days %}
|
|
Distribution update will start in {{ in_days }} days. Take a backup of
|
|
apps and data before then. See <a href="{{ dist_upgrade_url }}">manual</a>
|
|
page for expected changes and transitions during the distribution upgrade.
|
|
{% endblocktrans %}
|
|
{% endif %}
|
|
</p>
|
|
|
|
<p>
|
|
<a href="{% url 'upgrades:dist-upgrade' %}"
|
|
role="button" class="btn btn-primary">
|
|
{% trans "Go to Distribution Update" %}
|
|
</a>
|
|
{% include 'notifications-dismiss-button.html' with id=id %}
|
|
</p>
|