security: List whether each app is sandboxed

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
[sunil: i18n for yes, no, N/A strings, avoid changing an i18ned string]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2019-12-30 12:29:23 -08:00
1 parent 1be1af9b18
commit 89aefc00cf
3 files changed
+74 -20

No files matched your search

+5 -6
View File
@@ -80,14 +80,13 @@ def _apply_changes(request, old_status, new_status):
def report(request):
"""Serve the security report page"""
vulnerability_counts = security.get_vulnerability_counts()
apps_report = security.get_apps_report()
return TemplateResponse(
request, 'security_report.html', {
'title':
_('Security Report'),
'freedombox_vulns':
vulnerability_counts.pop('freedombox'),
'apps_vulns':
sorted(vulnerability_counts.values(),
key=lambda app: app['name']),
'freedombox_report':
apps_report.pop('freedombox'),
'apps_report':
sorted(apps_report.values(), key=lambda app: app['name']),
})