FreedomBox/plinth/modules/upgrades/templates/upgrades_configure.html
Sunil Mohan Adapa 73e55f06b4
upgrades: security: Don't with the technical term 'backports' in UI
- Call backports as 'Frequent Feature Updates'. This is make it easy for a
non-technical user to understand better what they are.

- Clearly recommend enabling backports as this is our current consensus.

- Explain that if backports are disabled, feature updates will come every 2
years or so.

- Show the status of backports on upgrades app even after it is enabled.
Disappearing options in the UI are generally confusing for users (hiding of
expand partition feature should be seen as exception rather than as example).

- Tone down the alarm on backports:

  - Rename 'Security Notice' to 'Frequent Feature Updates' in security page.

  - Remove 'on a best-effort basis' phrase, as everything in Debian is similar.

  - Set the activate button to primary priority rather than warning to make the
  user comfortable with it.

- Share translation strings across the two apps so that effort for translators
is reduced.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2020-07-19 07:10:44 -04:00

95 lines
3.0 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 %}
{% blocktrans trimmed %}
Frequent feature updates can be activated. Activating them is
recommended.
{% endblocktrans %}
{% else %}
{% blocktrans trimmed %}
Frequent feature updates are enabled.
{% endblocktrans %}
{% endif %}
</p>
<p>
{% blocktrans trimmed %}
This will allow a very limited set of software, including FreedomBox
service, to be updated to receive newer features regularly instead of once
every 2 years or so. Note that packages with frequent feature updates do
not have support from Debian Security Team. They are instead maintained by
contributors to Debian and the FreedomBox community.
{% endblocktrans %}
</p>
{% if can_activate_backports %}
<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 %}