mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Show attachment preview also in part edit page.
This commit is contained in:
parent
f53cc08f52
commit
1b28006267
3 changed files with 11 additions and 2 deletions
|
@ -356,8 +356,9 @@ btn-xs
|
|||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
|
||||
.thumbnail-sm {
|
||||
height: 100px;
|
||||
max-height: 100px;
|
||||
}
|
||||
|
||||
img.img-attachement {
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
{% endif %}
|
||||
{% if attach.picture %}
|
||||
<a href="{{ attach | entityURL('file_view') }}" target="_blank" data-no-ajax>
|
||||
<img class="img-fluid img-thumbnail" src="{{ attach | entityURL('file_view') }}" alt="{% trans %}attachment.preview.alt{% endtrans %}" />
|
||||
<img class="img-fluid img-thumbnail thumbnail-sm" src="{{ attach | entityURL('file_view') }}" alt="{% trans %}attachment.preview.alt{% endtrans %}" />
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ attach | entityURL('file_view') }}" target="_blank" data-no-ajax class="link-external">{% trans %}attachment.view{% endtrans %}</a>
|
||||
|
|
|
@ -39,6 +39,14 @@
|
|||
</span>
|
||||
</h6>
|
||||
{% endif %}
|
||||
|
||||
{% if attach.picture %}
|
||||
<a href="{{ attach | entityURL('file_view') }}" target="_blank" data-no-ajax>
|
||||
<img class="img-fluid img-thumbnail thumbnail-sm" src="{{ attach | entityURL('file_view') }}" alt="{% trans %}attachment.preview.alt{% endtrans %}" />
|
||||
</a>
|
||||
{% else %}
|
||||
<a href="{{ attach | entityURL('file_view') }}" target="_blank" data-no-ajax class="link-external">{% trans %}attachment.view{% endtrans %}</a>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<br><br>
|
||||
<h6>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue