James Valleroy 6b0744c1c7
upgrades: Use only sources file to determine if backports enabled
Tests:
- Build deb and install in buster image. Manually remove backports
  sources file. Security page does not show backports notice. Updates
  page shows button to activate backports.
- Activate backports from updates page. Success message is shown and
  button to activate backports is removed. Security page shows
  backports notice.

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

28 lines
830 B
HTML

{% extends "app.html" %}
{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load bootstrap %}
{% load i18n %}
{% block status %}
{% if is_backports_enabled %}
<h3>{% trans "Security Notice" %}</h3>
<p>
{% blocktrans trimmed %}
Backports are enabled. Please note that packages from the backports
repository do not have security support from Debian. However, they are
maintained on a best-effort basis by contributors in Debian and
FreedomBox community.
{% endblocktrans %}
</p>
{% endif %}
<a class="btn btn-default" role="button" href="{% url 'security:report' %}"
title="{% trans 'Show security report' %}">
<span class="fa fa-line-chart" aria-hidden="true"></span>
{% trans "Show security report" %}
</a>
{% endblock %}