mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
1be1af9b18
commit
89aefc00cf
3 files changed
+74
-20
No files matched your search
@@ -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']),
|
||||
})
|
||||
Reference in new issue
Block a user