{% load i18n humanize %}{% comment %}
Task status chips on a production tree node. Param: node (node.task_status set by utils.tree_tasks).
{% endcomment %}{% for st in node.task_status %}
{% if st.status == "UNCLAIMED" %}
{% trans "Unclaimed" %} ({{ st.quantity|intcomma }})
{% elif st.status == "IN_PRODUCTION" %}
{% trans "In Production" %} ({{ st.quantity|intcomma }}){% if st.builders %} · {{ st.builders|join:", " }}{% endif %}
{% elif st.status == "COMPLETED" %}
{% trans "Built" %} ({{ st.quantity|intcomma }}){% if st.builders %} · {{ st.builders|join:", " }}{% endif %}
{% endif %}
{% endfor %}