{# Backlog items partial — rendered inside #backlog-items container #} {# ── Reusable item row macro ─────────────────────────────────────── #} {% macro item_row(item, show_repo=true) %}
{# Dismiss (check off) button #} {# Priority indicator: arrow icon + score #}
{{ '%.0f' | format(item.score) }}
{# Category icon #}
{% if show_repo %} {# Repo name #} {{ item.repo_full_name }} {% endif %} {# Description #} {{ item.description }} {# Age #} {% if item.age_days > 0 %} {% set days = item.age_days | int %} {% if days == 0 %}<1d {% elif days < 365 %}{{ days }}d {% else %}{{ days // 365 }}y {{ days % 365 }}d {% endif %} {% endif %} {# Actions #}
{% if item.url %} {% endif %}
{% endmacro %} {# ── Grouped view ────────────────────────────────────────────────── #} {% if groups is defined and groups %}
{% for group in groups %}
{{ '%.0f' | format(group.total_score) }}
{{ group.repo_full_name }} {{ group.items | length }} item{{ 's' if group.items | length != 1 else '' }}
{% for item in group.items %} {{ item_row(item, show_repo=false) }} {% endfor %}
{% endfor %}
{# ── Flat view (default) ─────────────────────────────────────────── #} {% elif items %}
{% for item in items %} {{ item_row(item) }} {% endfor %}
{% else %}

No items match the current filters.

{% endif %}