mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
PHRAS-2665
This commit is contained in:
@@ -52,7 +52,7 @@
|
|||||||
{% set prevRatio = '' %}
|
{% set prevRatio = '' %}
|
||||||
|
|
||||||
{% if width and height %}
|
{% if width and height %}
|
||||||
{% set ratio = (width / height)|number_format(3, '.') %}
|
{% set ratio = (width / height)|number_format(2, '.') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{#Set the document Ratio #}
|
{#Set the document Ratio #}
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
|
|
||||||
{% if width and height %}
|
{% if width and height %}
|
||||||
{% if subdef.get_name()=='preview' %}
|
{% if subdef.get_name()=='preview' %}
|
||||||
{% set prevRatio = (width / height)|number_format(3, '.') %}
|
{% set prevRatio = (width / height)|number_format(2, '.') %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user