{% macro badge(status) %}{{ status | upper }}{% endmacro %} {% macro table(t) %} {% if t.collapsed %}
{{ t.n_rows }} rows {% endif %}
{% for c in t.columns %}{% endfor %} {% for row in t.rows %} {% for cell in row %}{% endfor %} {% endfor %}
{{ c }}
{{ cell }}
{% if t.collapsed %}
{% endif %} {% endmacro %} {% macro reportlet(it, level) %}
{{ it.title }} {{ badge(it.status) }} {% if it.svg %}
{{ it.svg }}
{% endif %} {% if it.table %} {{ table(it.table) }} {% endif %}

{{ it.caption }}

{% endmacro %} dirconn report: sub-{{ subject }}

dirconn report: sub-{{ subject }}

Overall status {{ badge(status) }}. {{ n_units }} unit(s).

{% for s in sections %}

{{ s.title }}

{% if s.methods %} {% if s.methods.error %}

Boilerplate could not be made: {{ s.methods.error }}

{% elif s.methods.paragraphs %} {% for p in s.methods.paragraphs %}

{{ p }}

{% endfor %}

References

    {% for text, url in s.methods.references %}
  1. {{ text }}{% if url %} {{ url }}{% endif %}
  2. {% endfor %}
{% else %}

No methods text was supplied.

{% endif %} {% endif %} {% for it in s.items %} {{ reportlet(it, 3) }} {% endfor %} {% for u in s.units %}

{{ u.label }}

{% for it in u.items %} {{ reportlet(it, 4) }} {% else %}

No reportlets for this unit.

{% endfor %}
{% endfor %} {% if s.empty %}

Nothing to show.

{% endif %}
{% endfor %}