mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge remote-tracking branch 'inventree/master'
This commit is contained in:
commit
09b7578c35
@ -4,20 +4,14 @@
|
||||
{% load inventree_extras %}
|
||||
|
||||
{% block collapse_title %}
|
||||
<div>
|
||||
<div class='media-left'>
|
||||
<img class='part-thumb' style='height: auto; width: 48px;'
|
||||
{% if item.sub_part.image %}
|
||||
src="{{ item.sub_part.image.url }}" alt='{{ item.sub_part.name }}'>
|
||||
{% else %}
|
||||
src="{% static 'img/blank_image.png' %}" alt='No image'>
|
||||
{% endif %}
|
||||
<div class='hover-icon media-left' style='float: left;'>
|
||||
<img class='hover-img-thumb' src="{% if item.sub_part.image %}{{ item.sub_part.image.url }}{% endif %}">
|
||||
<img class='hover-img-large' src="{% if item.sub_part.image %}{{ item.sub_part.image.url }}{% endif %}">
|
||||
</div>
|
||||
<div class='media-body'>
|
||||
<div>
|
||||
{{ item.sub_part.name }}<br>
|
||||
<small><i>{{ item.sub_part.description }}</i></small>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block collapse_heading %}
|
||||
|
@ -366,7 +366,7 @@ function loadStockTable(table, options) {
|
||||
title: 'Part',
|
||||
sortable: true,
|
||||
formatter: function(value, row, index, field) {
|
||||
return imageHoverIcon(row.part.image_url) + renderLink(value, row.part.url);
|
||||
return imageHoverIcon(row.part.image_url) + renderLink(value, row.part.url + 'stock/');
|
||||
}
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user