{# One evidence record, whole, with its two hashes taken again from the file it is in. The record holds every row of its result, so the rows are inside a disclosure and the count is on the summary line: a reader who wants them opens them, and a reader who wants the hash reads it without waiting for a thousand rows. The rows on the page are the first of them and the summary says how many, because a page that laid out every row of a ten thousand row result is a document a browser works through however little of it anybody reads. The whole result is in the JSON copied beside the page, and the line under the table links it. #} {% macro record_block(record, rows_table) %}

{{ record.side }}: {{ record.file }}

{{ record.executed_sql }}
statement read from
{{ record.source.path }}
digest
{{ record.source.digest }}
origin
{% if record.source.origin %}{{ record.source.origin }}{% if record.source.date %}, {{ record.source.date }}{% endif %}{% else %}the run was told none{% endif %}
{% for hash in record.hashes %}

{{ hash.name }} {{ hash.stated }} {% if hash.match %} recomputed from this JSON: match {% else %} recomputed from this JSON: {{ hash.recomputed }}, and this file states {{ hash.stated }} {% endif %}

{% endfor %}
the result this record holds, {{ record.result.total }}{% if record.result.partial %}, {{ record.result.rows_shown }} of them here{% endif %} {{ rows_table(record.result) }} {% if record.result.partial %}

The whole result is in {{ record.file }}, beside this page.

{% endif %}
what ran, and where
{% for fact in record.identity %}
{{ fact.name }}
{{ fact.value }}
{% endfor %}
the session it ran under
{% for fact in record.session %}
{{ fact.name }}
{{ fact.value }}
{% endfor %}

recorded beside them

{% for fact in record.recorded %}
{{ fact.name }}
{{ fact.value }}
{% endfor %}
the rendering and the data
{% for fact in record.serialization %}
{{ fact.name }}
{{ fact.value }}
{% endfor %} {% for fact in record.fixture %}
{{ fact.name }}
{{ fact.value }}
{% endfor %}
{% endmacro %}