From 31ea71d3913f6be45922f7cc65e6ba0593838107 Mon Sep 17 00:00:00 2001
From: Oliver <oliver.henry.walters@gmail.com>
Date: Wed, 3 Nov 2021 14:00:13 +1100
Subject: [PATCH] Display part category

---
 InvenTree/part/templates/part/detail.html | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html
index 1bc4b9b967..fc9795b6e0 100644
--- a/InvenTree/part/templates/part/detail.html
+++ b/InvenTree/part/templates/part/detail.html
@@ -30,6 +30,15 @@
                 <td>{% trans "Description" %}</td>
                 <td>{{ part.description }}{% include "clip.html"%}</td>
             </tr>
+            {% if part.category %}
+            <tr>
+                <td><span class='fas fa-sitemap'></span></td>
+                <td>{% trans "Category" %}</td>
+                <td>
+                    <a href='{% url "category-detail" part.category.pk %}'>{{ part.category }}</a>
+                </td>
+            </tr>
+            {% endif %}
             {% if part.IPN %}
             <tr>
                 <td><span class='fas fa-tag'></span></td>