{% extends "base.html" %}
{% import '_ui.html' as ui %}
{% block title %}{{ filename }} - Blancco Report{% endblock %}
{% set meta = data.meta or {} %}
{% set company = data.company or {} %}
{% set hw = data.hardware or {} %}
{% set sysinfo = hw.system or {} %}
{% set bios = hw.bios or {} %}
{% set memsum = hw.memory or {} %}
{# Bytes to GB / TB in decimal units, as drive makers and the reports list use. #}
{% macro hbytes(n) -%}
{%- set n = (n | int) -%}
{%- if n >= 1000000000000 -%}
{{ "%.2f"|format(n / 1000000000000) }} TB
{%- elif n >= 1000000000 -%}
{{ "%.0f"|format(n / 1000000000) }} GB
{%- elif n >= 1000000 -%}
{{ "%.0f"|format(n / 1000000) }} MB
{%- else -%}
{{ n }} B
{%- endif -%}
{%- endmacro %}
{% block extra_head %}
{% endblock %}
{% block content %}
{% set n_drives = outcomes | length %}
{% set n_ok = outcomes.values() | selectattr('ok') | list | length %}
{% set standards = outcomes.values() | selectattr('ok') | map(attribute='standard') | reject('equalto', '') | unique | list %}
{% set first = (data.erasures or [{}])[0] %}
{{ sysinfo.serial or filename }}
{{ sysinfo.model }}
{% if result == 'Successful' %}{{ ui.chip('Successful', 'ok') }}{% elif result == 'Failed' %}{{ ui.chip('Failed', 'fail') }}{% else %}{{ ui.chip('No erasure recorded', 'off') }}{% endif %}
| # | Step | Pattern | State | Elapsed | Errors |
|---|---|---|---|---|---|
| {{ st.number or loop.index }} | {{ st.type or '-' }} | {{ st.pattern or '-' }} | {{ st.state or '-' }} | {{ st.elapsed_time or '-' }} | {{ st.errors or 0 }} |