mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-10 12:19:33 +00:00
Show preview pictures as carousel on part info page.
This commit is contained in:
parent
07dcbc0464
commit
2d4def2836
5 changed files with 96 additions and 14 deletions
|
|
@ -1,14 +1,10 @@
|
|||
{% import "helper.twig" as helper %}
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
{% if part.masterPictureAttachment and part.masterPictureAttachment.picture %}
|
||||
<img src="{{ part.masterPictureAttachment | entityURL('file_view') }}" class="img-fluid img-thumbnail bg-light" alt="Part main image" height="300" width="300">
|
||||
{% else %}
|
||||
<img src="{{ asset('img/part_placeholder.svg') }}" class="img-fluid img-thumbnail bg-light" alt="Part main image" height="300" width="300">
|
||||
{% endif %}
|
||||
<div class="col-md-3 col-lg-4">
|
||||
{% include "Parts/info/_picture.html.twig" %}
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<div class="col-md-9 col-lg-8">
|
||||
<h5 class="text-muted pt-2" title="{% trans %}manufacturer.label{% endtrans %}">
|
||||
{% if part.manufacturer %}
|
||||
{% if part.manufacturer.id is not null %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue