mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
security: Move backports notice to security page
Move get_backports_in_use to upgrades. Signed-off-by: James Valleroy <jvalleroy@mailbox.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
d042c3c60c
commit
f41cc116a1
5 files changed
+34
-32
No files matched your search
@@ -7,6 +7,18 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% block status %}
|
||||
{% if backports_in_use %}
|
||||
<h3>{% trans "Security Notice" %}</h3>
|
||||
<p>
|
||||
{% blocktrans trimmed %}
|
||||
You are using packages from Debian backports. Please note that these
|
||||
packages 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>
|
||||
|
||||
@@ -9,6 +9,7 @@ from django.utils.translation import ugettext as _
|
||||
|
||||
from plinth import action_utils, actions
|
||||
from plinth.modules import security
|
||||
from plinth.modules.upgrades import get_backports_in_use
|
||||
|
||||
from .forms import SecurityForm
|
||||
|
||||
@@ -28,10 +29,12 @@ def index(request):
|
||||
else:
|
||||
form = SecurityForm(initial=status, prefix='security')
|
||||
|
||||
return TemplateResponse(request, 'security.html', {
|
||||
'app_info': security.app.info,
|
||||
'form': form,
|
||||
})
|
||||
return TemplateResponse(
|
||||
request, 'security.html', {
|
||||
'app_info': security.app.info,
|
||||
'form': form,
|
||||
'backports_in_use': get_backports_in_use(),
|
||||
})
|
||||
|
||||
|
||||
def get_status(request):
|
||||
|
||||
Reference in new issue
Block a user