mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-01 08:44:48 +02:00
Use twigs builtin filter to inline data urls, instead of a custom one.
This commit is contained in:
parent
f64910374f
commit
d8adc26b03
8 changed files with 83 additions and 66 deletions
|
@ -45,7 +45,7 @@
|
|||
{% block additional_content %}
|
||||
{% if pdf_data is defined and pdf_data is not empty %}
|
||||
<div class="card mt-2 mb-2 p-1 border-secondary" style="resize: vertical; overflow: scroll; height: 250px;">
|
||||
<object id="pdf_preview" data="{{ inlineData(pdf_data, 'application/pdf') | escape('html_attr') }}"style="height: inherit">
|
||||
<object id="pdf_preview" data="{{ pdf_data | data_uri(mime='application/pdf') }}"style="height: inherit">
|
||||
</object>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue