2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +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

@ -0,0 +1,12 @@
{% load static %}
<div class='hover-icon media-left' style='float: left;'>
{% if image %}
<a class='hover-icon'>
{% endif %}
<img class='hover-img-thumb' {% if image %}src='{{ image.url }}'{% else %}src='{% static "img/blank_image.png" %}'{% endif %}>
{% if image %}
<img class='hover-img-large' src='{{ image.url }}'>
</a>
{% endif %}
</div>