PHRAS-2665

This commit is contained in:
Harrys Ravalomanana
2019-07-15 18:30:37 +04:00
parent d02f8f5a01
commit b590ae1c8a

View File

@@ -71,18 +71,19 @@
{% else %} {% else %}
{% set docRatio = '' %} {% set docRatio = '' %}
{% endif %} {% endif %}
{% if loop.index == 1 %}
<video id="thumb_video" controls="" preload="auto" data-ratio="{{ docRatio }}" data-test="{{ loop.index }}">
{% for subdef in previewHtml5 %}
<source type="{{ subdef.get_mime() }}" src="{{ subdef.get_url() }}"/>
{% endfor %}
{{ 'No preview available' | trans }}
</video>
<video id="thumb_video" controls="" preload="auto" data-ratio="{{ docRatio }}"> <div data-width="{{ subdef.get_width() }}"
{% for subdef in previewHtml5 %} data-height="{{ subdef.get_height() }}"
<source type="{{ subdef.get_mime() }}" src="{{ subdef.get_url() }}"/> data-name="{{ subdef.get_name() }}"
{% endfor %} class="alt_canvas" id="{{ subdef.get_name() }}" ></div>
{{ 'No preview available' | trans }} {% endif %}
</video>
<div data-width="{{ subdef.get_width() }}"
data-height="{{ subdef.get_height() }}"
data-name="{{ subdef.get_name() }}"
class="alt_canvas" id="{{ subdef.get_name() }}" ></div>
{% endfor %} {% endfor %}
</div> </div>