{% macro status(s) %}{{ s }}{% endmacro %} {# Plans: a story's derived status. `to-draft` reads "not ready" — the hub holds no ticket for it yet. #} {# `test_status` (testing | closed | reopened | fix-done) follows the status when a report or claim set one; `regression` adds its badge. #} {% macro plan_status(s, test_status='', regression=False) %}{{ 'not ready' if s == 'to-draft' else s }}{% if test_status %} · {{ test_status }}{% endif %}{% if regression %} regression{% endif %}{% endmacro %} {% macro plan_counts(c) %}{% for k in ('done', 'in progress', 'ready', 'to-draft', 'blocked', 'testing', 'closed', 'reopened', 'fix-done') %}{% if c.get(k) %}{{ c[k] }} {{ 'not ready' if k == 'to-draft' else k }} {% endif %}{% endfor %}{% endmacro %} {# A held claim's badge text (planui.claim_badge); autoescaped, it carries the holder's stop reason. #} {% macro claim_badge(text) %}{{ text }}{% endmacro %}