{% macro stamp(dash) -%}
{% if dash.stamp %}统计于 {{ dash.stamp }}{% if dash.age %}({{ dash.age }}){% endif %}{% else %}尚无统计时间{% endif %}
{% if dash.source == "markdown" %} · 计数来自入库的 DASHBOARD.md{% endif %}
· 刷新:让 AI 执行 refresh-dashboard,或运行 uv run tuner-dashboard refresh
{{ dash.hint }}
{% endif %} {% for name, err in dash.errors.items() %}「{{ name }}」段统计失败,计数沿用上次:{{ err }}
{% endfor %} {%- endmacro %} {% macro num(value) -%}{{ value if value is not none else "—" }}{%- endmacro %} {% macro hbars(rows) -%} {% if rows %} {% set mx = rows|map(attribute='count')|max %}| {{ row.name }} | {{ row.count }} |
暂无
{% endif %} {%- endmacro %} {% macro badge(status) -%}{{ status }}{%- endmacro %} {% macro needs_json(dash) -%} {% if dash.source != "json" %}这一页的明细只在本机统计结果里(artifacts/catalogs/dashboard.json)。