Re-enable image hovering where appropriate

This commit is contained in:
Oliver Walters 2019-06-03 22:03:22 +10:00
parent 8e0e2979b5
commit 782ad57f52
5 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@
{% for item in build.required_parts %}
<tr>
<td>
{% include "hover_image.html" with image=item.part.image %}
{% include "hover_image.html" with image=item.part.image hover=True %}
<a class='hover-icon'a href="{% url 'part-detail' item.part.id %}">{{ item.part.full_name }}</a>
</td>
<td>{{ item.part.description }}</td>

View File

@ -21,7 +21,7 @@ Automatically allocate stock to this build?
{% for item in allocations %}
<tr>
<td>
{% include "hover_image.html" with image=item.stock_item.part.image %}
{% include "hover_image.html" with image=item.stock_item.part.image hover=True %}
</td>
<td>
{{ item.stock_item.part.full_name }}<br>

View File

@ -18,7 +18,7 @@ The following items will be removed from stock:
{% for item in taking %}
<tr>
<td>
{% include "hover_image.html" with image=item.stock_item.part.image %}
{% include "hover_image.html" with image=item.stock_item.part.image hover=True %}
</td>
<td>
{{ item.stock_item.part.full_name }}<br>
@ -35,7 +35,7 @@ No parts have been allocated to this build.
<hr>
The following items will be created:
<div class='panel panel-default'>
{% include "hover_image.html" with image=build.part.image %}
{% include "hover_image.html" with image=build.part.image hover=True %}
{{ build.quantity }} x {{ build.part.full_name }}
</div>

View File

@ -33,7 +33,7 @@
{% for variant in part.variants.all %}
<tr>
<td>
{% include "hover_image.html" with image=variant.image %}
{% include "hover_image.html" with image=variant.image hover=True %}
<a href="{% url 'part-detail' variant.id %}">{{ variant.full_name }}</a>
</td>
<td>{{ variant.description }}</td>

View File

@ -17,7 +17,7 @@
</tr>
{% for item in stock_items %}
<tr id='stock-row-{{ item.id }}' class='error'>
<td>{% include "hover_image.html" with image=item.part.image %}
<td>{% include "hover_image.html" with image=item.part.image hover=True %}
{{ item.part.full_name }} <small><i>{{ item.part.description }}</i></small></td>
<td>{{ item.location.pathstring }}</td>
<td>