Allow to show the footprint image in part info.

Also added an placehoder image for parts, who dont have an image.
This commit is contained in:
Jan Böhmer 2019-03-12 19:59:18 +01:00
parent 2e3713cd5e
commit 40714c1914
4 changed files with 86 additions and 3 deletions

View file

@ -19,7 +19,7 @@
<div class="col-md-9">
<div class="row">
<div class="col-md-3">
<img src="https://via.placeholder.com/300" class="img-fluid img-thumbnail" height="300" width="300">
<img src="{{ main_image }}" class="img-fluid img-thumbnail bg-light" height="300" width="300">
</div>
<div class="col-md-9">
<h5 class="text-muted pt-2" title="{% trans %}manufacturer.label{% endtrans %}">{{ part.manufacturer.name ?? ""}}</h5>