mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Solve weird collapse bug
- HTML is so gross - Disable image hover seems to work...
This commit is contained in:
parent
bb5ed0b9fe
commit
7a244f48ae
@ -6,7 +6,7 @@
|
|||||||
{% block collapse_panel_setup %}class='panel part-allocation' id='allocation-panel-{{ item.sub_part.id }}'{% endblock %}
|
{% block collapse_panel_setup %}class='panel part-allocation' id='allocation-panel-{{ item.sub_part.id }}'{% endblock %}
|
||||||
|
|
||||||
{% block collapse_title %}
|
{% block collapse_title %}
|
||||||
{% include "hover_image.html" with image=item.sub_part.image %}
|
{% include "hover_image.html" with image=item.sub_part.image hover=false %}
|
||||||
<div>
|
<div>
|
||||||
{{ item.sub_part.full_name }}
|
{{ item.sub_part.full_name }}
|
||||||
<small><i>{{ item.sub_part.description }}</i></small>
|
<small><i>{{ item.sub_part.description }}</i></small>
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
<div class='hover-icon media-left' style='float: left;'>
|
<div class='media-left' style='float: left;'>
|
||||||
{% if image %}
|
{% if hover %}
|
||||||
<a class='hover-icon'>
|
<a class='hover-icon'>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<img class='hover-img-thumb' {% if image %}src='{{ image.url }}'{% else %}src='{% static "img/blank_image.png" %}'{% endif %}>
|
<img class='hover-img-thumb' {% if image %}src='{{ image.url }}'{% else %}src='{% static "img/blank_image.png" %}'{% endif %}>
|
||||||
{% if image %}
|
{% if hover %}
|
||||||
<img class='hover-img-large' src='{{ image.url }}'>
|
<img class='hover-img-large' {% if image %}src='{{ image.url }}'{% else %}src='{% static "img/blank_image.png" %}'{% endif %}>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
Loading…
x
Reference in New Issue
Block a user