{% extends "base.html" %} {% load static %} {% block content %} {% include "part/cat_link.html" with category=part.category %}

{{ part.name }}

{% if part.description %}

{{ part.description }}

{% endif %} {% if part.IPN %} IPN {{ part.IPN }} {% endif %} {% if part.URL %} URL {{ part.URL }} {% endif %}

Stock Status - {{ part.available_stock }} available

{% if part.buildable %} {% if part.quantity_being_built > 0 %} {% endif %} {% endif %} {% if part.allocation_count > 0 %} {% if part.allocation_count > part.total_stock %} {% else %} {% endif %} {% endif %}
In Stock {% if part.stock == 0 %} {{ part.total_stock }} {% elif part.stock < part.minimum_stock %} {{ part.total_stock }} {% else %} {{ part.total_stock }} {% endif %}
Can Build {% if part.can_build == 0 %} 0 {% else %} {{ part.can_build }} {% endif %}
Underway {{ part.quantity_being_built }}
Allocated{{ part.allocation_count }}{{ part.allocation_count }}

{% block details %} {% endblock %}
{% endblock %}