{% load inventree_extras %}
{% load i18n %}

{% decimal total_stock %}

{% if total_stock == 0 %}
<span class='label label-danger label-right'>{% trans "No Stock" %}</span>
{% elif total_stock < part.minimum_stock %}
<span class='label label-warning label-right'>{% trans "Low Stock" %}</span>
{% endif %}