{# The board's columns (#303): the `/ui/board` page and the focus page's Board view (#316) render them alike; on the focus page each claimed card also says where its work is. #} {% from "_where.html" import live_line, where with context %} {% from "_when.html" import when %} {% macro card(c) %}
{{ type_icon(c.type) }}{{ c.id }} {% if c.priority and c.priority != 'none' %}{{ c.priority }}{% endif %} {% if c.release %}✓ {{ c.release }}{% endif %}
{{ c.title }} {% if c.estimate is not none or c.value %}
{% if c.estimate is not none %}{{ c.estimate }} pts{% endif %} {% if c.value %}◆ {{ c.value }}{% endif %}
{% endif %} {% if c.updatedAt %}
{{ when(c.updatedAt, 'updated') }}
{% endif %} {% if c.blockers %}
⛔ blocked by {% for x in c.blockers %}{{ x }}{{ ', ' if not loop.last }}{% endfor %}
{% endif %} {% if c.live %}
{{ live_line(c.live) }}
{% endif %} {{ where(c.id) }} {% if c.epic and c.epic != data.scope.id %}
{{ c.epic }} {{ c.epicTitle or '' }}
{% endif %}
{% endmacro %} {# #343: every status of `statuses` is a column, in order; one without cards is narrow, its name read top to bottom, with a tooltip; on a narrow screen those are a row of chips instead. #} {% if data.columns %} {% set statuses = data.statuses or (data.columns | map(attribute='status') | list) %} {% set filled = data.columns | map(attribute='status') | list %}

{% for st in statuses if st not in filled %}{{ st | replace('_', ' ') }} 0{% endfor %}

{% for st in statuses %} {% set col = data.columns | selectattr('status', 'equalto', st) | first %} {% if col %}

{{ st | replace('_', ' ') }} ({{ col.cards | length }})

{% for c in col.cards %}{{ card(c) }}{% endfor %}
{% else %}

{{ st | replace('_', ' ') }} (0)

{% endif %} {% endfor %}
{% else %}

No tickets on this board.

{% endif %} {% if data.missing %}

Missing tickets: {{ data.missing | join(', ') }} (see tkt doctor)

{% endif %} {% if data.leaks %}

⛔ {{ data.leaks | length }} open blocker{{ '' if data.leaks | length == 1 else 's' }} outside the board: {% for f in data.leaks %}{{ f.id }} {{ f.title }} ({{ f.status | replace('_', ' ') }}){{ ', ' if not loop.last }}{% endfor %}

{% endif %}