mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Show master picture attachment in poject info page, when existing
This commit is contained in:
parent
7b536fc4ad
commit
937f1ab38b
2 changed files with 7 additions and 11 deletions
|
@ -4,7 +4,13 @@
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-3 col-lg-4 col-4 mt-auto mb-auto">
|
<div class="col-md-3 col-lg-4 col-4 mt-auto mb-auto">
|
||||||
|
{% if project.masterPictureAttachment %}
|
||||||
|
<a href="{{ entity_url(project.masterPictureAttachment, 'file_view') }}" data-turbo="false" target="_blank" rel="noopener">
|
||||||
|
<img class="d-block w-100 img-fluid img-thumbnail bg-light" src="{{ entity_url(project.masterPictureAttachment, 'file_view') }}" alt="">
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
<img src="{{ asset('img/part_placeholder.svg') }}" class="img-fluid img-thumbnail bg-light mb-2" alt="Part main image" height="300" width="300">
|
<img src="{{ asset('img/part_placeholder.svg') }}" class="img-fluid img-thumbnail bg-light mb-2" alt="Part main image" height="300" width="300">
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-9 col-lg-8 col-7">
|
<div class="col-md-9 col-lg-8 col-7">
|
||||||
<h3 class="w-fit" title="{% trans %}name.label{% endtrans %}">{{ project.name }}
|
<h3 class="w-fit" title="{% trans %}name.label{% endtrans %}">{{ project.name }}
|
||||||
|
|
|
@ -9,16 +9,6 @@
|
||||||
|
|
||||||
{{ helper.breadcrumb_entity_link(project) }}
|
{{ helper.breadcrumb_entity_link(project) }}
|
||||||
{{ parent() }}
|
{{ parent() }}
|
||||||
|
|
||||||
{# {% include "Projects/_info_card.html.twig" %} #}
|
|
||||||
|
|
||||||
{# {{ datatables.datatable(datatable, 'elements/datatables/datatables', 'projects') }} #}
|
|
||||||
|
|
||||||
|
|
||||||
{# {% include "Parts/lists/_action_bar.html.twig" with {'url_options': {'category': entity.iD}} %}
|
|
||||||
|
|
||||||
{% include "Parts/lists/_parts_list.html.twig" %} #}
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block card_title %}
|
{% block card_title %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue