From fe42d5c54dde43853b2887302b27271d0c9b6ec8 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 24 Feb 2021 21:58:40 +1100 Subject: [PATCH] Cleanup display for part --- InvenTree/part/templates/part/part_base.html | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index 14de908fcb..57352afaf9 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -10,23 +10,14 @@ {% block content %} -{% if part.virtual %} -
- {% trans "This part is a virtual part" %} -
-{% endif %} -{% if part.is_template %} -
- {% trans "This part is a template part." %} -
-{% endif %} +
+ {% if part.variant_of %}
{% trans "This part is a variant of" %} {{ part.variant_of.full_name }}
{% endif %} -
{% include "part/part_thumb.html" %}