2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00
* Cleaner "variant of" rendering

* cleanup
This commit is contained in:
Oliver
2023-04-04 22:21:29 +10:00
committed by GitHub
parent 1ddc86d6a3
commit 85ff294d0d
3 changed files with 15 additions and 24 deletions

View File

@ -173,17 +173,16 @@
<td>{{ part.description }}{% include "clip.html"%}</td>
</tr>
</table>
<!-- Part info messages -->
<div class='info-messages'>
{% if part.variant_of %}
<div class='alert alert-info alert-block' style='padding: 10px;'>
{% object_link 'part-detail' part.variant_of.id part.variant_of.full_name as link %}
{% blocktrans %}This part is a variant of {{link}}{% endblocktrans %}
</div>
<tr>
<td><span class='fas fa-sitemap'></span></td>
<td>{% trans "Variant Of" %}</td>
<td>
<a href='{% url "part-detail" part.variant_of.pk %}'>{{ part.variant_of.full_name }}</a>
</td>
</tr>
{% endif %}
</div>
</table>
{% endblock details %}