2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 21:45:39 +00:00

Add template for hover_image

This commit is contained in:
Oliver Walters
2019-06-01 21:13:51 +10:00
parent 3869bc27c9
commit 8214aef0db
7 changed files with 19 additions and 27 deletions

View File

@ -33,12 +33,7 @@
{% for variant in part.variants.all %}
<tr>
<td>
<div class='hover-icon media-left' style='float: left;'>
<img class='hover-img-thumb' src="{% if variant.image %}{{ variant.image.url }}{% else %}{% static 'img/blank_image.png' %}{% endif %}">
{% if variant.image %}
<img class='hover-img-large' src="{{ variant.image.url }}">
{% endif %}
</div>
{% include "hover_image.html" with image=variant.image %}
<a href="{% url 'part-detail' variant.id %}">{{ variant.full_name }}</a>
</td>
<td>{{ variant.description }}</td>