{% load i18n humanize %}{% comment %} Per-structure stock under a material's stock total. Param: mat (annotated by utils.stock_locations). The build structure comes first, in green; the rest are piles that would need hauling. {% endcomment %}{% if mat.stock_locations %}
{% for loc in mat.stock_locations_shown %}
{{ loc.name }}: {{ loc.quantity|intcomma }}
{% endfor %} {% if mat.stock_locations_hidden %}
{% blocktrans count n=mat.stock_locations_hidden|length %}+{{ n }} more location{% plural %}+{{ n }} more locations{% endblocktrans %}
{% endif %} {% if mat.stock_at_facility is not None and mat.stock_at_facility == 0 %}
{% trans "None at build facility" %}
{% endif %}
{% endif %}