Remove ratio = 1 as default

This commit is contained in:
Nicolas Le Goff
2013-03-21 12:46:00 +01:00
parent ae78df11af
commit 3dc3caf137
2 changed files with 10 additions and 7 deletions

View File

@@ -131,9 +131,9 @@
{% set height = record.get_technical_infos(dataH) %}
{% if width and height %}
{% set ratio = (width / height) %}
{% set ratio = width / height %}
{% else %}
{% set ratio = 1 %}
{% set ratio = '' %}
{% endif %}
<video id="thumb_video" controls="" preload="auto" data-ratio="{{ ratio }}">