{% macro stage_strip(stages) %}
{% for stage in stages %}
{{ stage.stage }}
{{ stage.status or '-' }}{% if stage.seconds is not none %} {{ stage.seconds }}s{% endif %}
{% endfor %}
{% endmacro %} {% macro stacked(counts, total) %} {% set sum = total or (counts.values() | sum) %}
{% for key, value in counts.items() %}{{ value }} {{ key }}{% if not loop.last %} - {% endif %}{% endfor %}{% if not counts %}none{% endif %}
{% endmacro %} {% macro pager(listing, base) %}
{{ listing.first }}-{{ listing.last }} of {{ listing.total }} {% if listing.page > 1 %}previous{% endif %} page {{ listing.page }} of {{ listing.pages }} {% if listing.page < listing.pages %}next{% endif %}
{% endmacro %} {% macro verdict(passed) %} {{ 'pass' if passed else 'fail' }} {% endmacro %} {% macro document_link(pack, document_id, label=None, block=None) %} {{ label or document_id }} {% endmacro %} {% macro fact_link(pack, fact_id) %}{{ fact_id }}{% endmacro %} {% macro concept_link(pack, concept_id) %}{{ concept_id }}{% endmacro %} {% macro source_link(pack, source_id) %}{{ source_id }}{% endmacro %}