Skip to content

Commit

Permalink
Made template for showing image_field in admin-ui more robust (#1387)
Browse files Browse the repository at this point in the history
* Made template for showing image_field in admin-ui more robust

* Update src/bundle/Resources/views/themes/admin/ui/field_type/preview/content_fields.html.twig

Co-authored-by: Paweł Niedzielski <[email protected]>

---------

Co-authored-by: Paweł Niedzielski <[email protected]>
  • Loading branch information
vidarl and Steveb-p authored Dec 18, 2024
1 parent 5d3d38c commit 4ae54ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
<td>{{ 'ezimage.master_dimensions'|trans|desc('Master dimensions') }}:</td>
<td>{{ 'ezimage.width_and_height'|trans({'%width%': field.value.width, '%height%': field.value.height})|desc('Width: %width%px height: %height%px') }}</td>
</tr>
{% if field.value.height != '0' %}
{% if field.value.height %}
<tr class="ibexa-field-preview__meta-value-row">
<td>{{ 'ezimage.ratio'|trans|desc('Ratio') }}:</td>
<td>{{ (field.value.width/field.value.height)|round(2) }}</td>
Expand Down

0 comments on commit 4ae54ca

Please sign in to comment.