mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
See https://salsa.debian.org/sunilmohan/plinth/-/merge_requests/1 for discussion on the topic. Signed-off-by: Q.-A. Nick <email.bug@arcor.de> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
104 lines
3.5 KiB
HTML
104 lines
3.5 KiB
HTML
{% extends "app.html" %}
|
|
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load bootstrap %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
|
|
{% block extra_content %}
|
|
<h3>{% trans "Frequent Feature Updates" %}</h3>
|
|
<p>
|
|
{% if can_activate_backports and not is_backports_requested %}
|
|
{% blocktrans trimmed %}
|
|
Frequent feature updates can be activated. Activating them is
|
|
recommended.
|
|
{% endblocktrans %}
|
|
{% elif can_activate_backports and is_backports_requested %}
|
|
{% blocktrans trimmed %}
|
|
Frequent feature updates are activated.
|
|
{% endblocktrans %}
|
|
{% else %}
|
|
{% blocktrans trimmed %}
|
|
Frequent feature updates cannot be activated. They may not be necessary
|
|
on your distribution.
|
|
{% endblocktrans %}
|
|
{% endif %}
|
|
</p>
|
|
<p>
|
|
{% if can_activate_backports %}
|
|
{% blocktrans trimmed %}
|
|
Frequent feature updates allow the {{box_name}} Service, plus a very
|
|
limited set of software, to receive new features more frequently (from
|
|
the backports repository). This results in receiving some new features
|
|
within weeks, instead of only once every 2 years or so. Note that
|
|
software with frequent feature updates does not have support from the
|
|
Debian Security Team. Instead, they are maintained by contributors to
|
|
Debian and the {{box_name}} community.
|
|
{% endblocktrans %}
|
|
{% endif %}
|
|
</p>
|
|
{% if can_activate_backports and not is_backports_requested %}
|
|
<div class="alert alert-warning" role="alert">
|
|
{% url 'snapshot:index' as snapshot_url %}
|
|
{% blocktrans trimmed %}
|
|
<strong>Warning!</strong> Once frequent feature updates are activated,
|
|
they cannot be deactivated. You may wish to take a snapshot using
|
|
<a href="{{ snapshot_url }}">Storage Snapshots</a> before continuing.
|
|
{% endblocktrans %}
|
|
</div>
|
|
<p>
|
|
<form class="form" method="post"
|
|
action="{% url 'upgrades:activate-backports' %}">
|
|
{% csrf_token %}
|
|
<input type="submit" class="btn btn-primary"
|
|
value="{% trans 'Activate frequent feature updates (recommended)' %}"/>
|
|
</form>
|
|
</p>
|
|
{% endif %}
|
|
|
|
<h3>{% trans "Manual Update" %}</h3>
|
|
{% if is_busy %}
|
|
<p>
|
|
<button type="button" disabled="disabled"
|
|
class="running-status-parent btn btn-default" >
|
|
<span class="running-status loading"></span>
|
|
{% trans "Updating..." %}
|
|
</button>
|
|
</p>
|
|
{% else %}
|
|
<p>
|
|
<form class="form" method="post" action="{% url 'upgrades:upgrade' %}">
|
|
{% csrf_token %}
|
|
<input type="submit" class="btn btn-default"
|
|
value="{% trans "Update now" %}"/>
|
|
</form>
|
|
</p>
|
|
{% endif %}
|
|
|
|
<p>
|
|
{% blocktrans trimmed %}
|
|
<strong>This may take a long time to complete.</strong> During an update,
|
|
you cannot install apps. Also, this web interface may be temporarily
|
|
unavailable and show an error. In that case, refresh the page to
|
|
continue.
|
|
{% endblocktrans %}
|
|
</p>
|
|
|
|
{% if log %}
|
|
<p>
|
|
<a class="btn btn-default collapsed collapsible-button" role="button"
|
|
data-toggle="collapse" href="#collapse-log" aria-expanded="false"
|
|
aria-controls="collapse-log">
|
|
<span class="fa fa-chevron-right fa-fw" aria-hidden="true"></span>
|
|
{% trans "Show recent update logs" %}
|
|
</a>
|
|
|
|
<div class="collapse" id="collapse-log">
|
|
<pre>{{ log }}</pre>
|
|
</div>
|
|
</p>
|
|
{% endif %}
|
|
{% endblock %}
|