{% import "tungsten/components/ui.html" as ui %} {% set status_icon = {'pass': 'circle-check', 'warn': 'circle-alert', 'fail': 'circle-x', 'info': 'info', 'skip': 'circle-minus'} %} {% set status_color = {'pass': 'success', 'warn': 'warning', 'fail': 'danger', 'info': 'info', 'skip': 'gray'} %} {% set status_label = {'pass': 'Passed', 'warn': 'Warning', 'fail': 'Failed', 'info': 'Note', 'skip': 'Skipped'} %} {% set severity_label = {'high': 'High risk', 'medium': 'Medium risk', 'low': 'Low risk'} %} {% if audit is none %}
{{ icon('shield-check', 'h-8 w-8') }}

{{ __('No audit yet') }}

{{ __('Press Run audit to check your settings, admin accounts, logins and website headers.') }}

{% else %} {% set score_color = 'success' if audit.score >= 80 else ('warning' if audit.score >= 60 else 'danger') %}
{{ audit.score }}

{{ __('Grade') }} {{ audit.grade }}

{{ ui.badge(__(':count failed', count=audit.failed), 'danger' if audit.failed else 'gray', 'circle-x') }} {{ ui.badge(__(':count warnings', count=audit.warnings), 'warning' if audit.warnings else 'gray', 'circle-alert') }} {{ ui.badge(__(':count passed', count=audit.passed), 'success', 'circle-check') }}

{{ __('Checked') }} {{ audit.created_at.strftime('%d %b %Y, %H:%M') }}{% if audit.url %} ยท {{ audit.url }}{% endif %}

{{ __('Fix the red items first: they are the biggest risks. Each item says how.') }}

{% for group, items in groups %}

{{ __(group) }}

{% endfor %} {% endif %}