diff --git a/templates/web/prod/actions/Tools/videoEditor.html.twig b/templates/web/prod/actions/Tools/videoEditor.html.twig index 150bc55767..b0064cc978 100644 --- a/templates/web/prod/actions/Tools/videoEditor.html.twig +++ b/templates/web/prod/actions/Tools/videoEditor.html.twig @@ -49,6 +49,7 @@ {#Set the preview Ratio #} {% set width = technical_info[dataW].value %} {% set height = technical_info[dataH].value %} + {% set prevRatio = '' %} {% if width and height %} {% set rawRatio = (width / height)|number_format(3, '.') %} @@ -59,7 +60,7 @@ {% endif %} {#Set the document Ratio #} - {% for subdef in outputFormats %} + {% for subdef in previewHtml5 %} {% set width = subdef.get_width() %} {% set height = subdef.get_height() %} @@ -67,24 +68,21 @@ {% if width and height %} {% set rawRatio = (width / height)|number_format(3, '.') %} {% set rawRatioLength = rawRatio|length %} - {% set docRatio = rawRatio|slice(0,rawRatioLength-1) %} + {% if subdef.get_name()=='preview' %} + {% set prevRatio = rawRatio|slice(0,rawRatioLength-1) %} + {% endif %} {% else %} - {% set docRatio = '' %} + {% set prevRatio = '' %} {% endif %} - {% if loop.index == 1 %} - -
- {% endif %} {% endfor %} + +