Commit 3a1948d0 by aa.gusti

perbaikan template readonly img

1 parent fbef0a9c
...@@ -10,32 +10,20 @@ ...@@ -10,32 +10,20 @@
img ['jpg', 'jpeg', 'gif', 'png', 'svg', 'eps', 'psd']; img ['jpg', 'jpeg', 'gif', 'png', 'svg', 'eps', 'psd'];
video ['avi', 'mov', 'mpv']; video ['avi', 'mov', 'mpv'];
"> ">
<img tal:condition="ext in img" id="preview-${oid}" alt="" src="${preview_url}" <div class="thumbnail">
style="${style}" <img tal:condition="ext in img" id="preview-${oid}" alt="" src="${preview_url}" style="${style}"
onload="window.URL.revokeObjectURL(this.src);"></img> onload="window.URL.revokeObjectURL(this.src);"></img>
<video tal:condition="ext in video" <video tal:condition="ext in video" style="${style}" controls src="${preview_url}" type="video/${ext}"
style="${style}" controls id="preview-${oid}">
src="${preview_url}" type="video/${ext}"
id="preview-${oid}">
Your browser does not support the video tag. Your browser does not support the video tag.
</video> </video>
<video tal:condition="ext=='mp4'" controls style="${style}" src="${preview_url}" type="video/mp4" id="preview-${oid}">
<video tal:condition="ext=='mp4'"
controls
style="${style}"
src="${preview_url}"
type="video/mp4"
id="preview-${oid}">
Your browser does not support the video tag. Your browser does not support the video tag.
</video> </video>
<embed tal:condition="ext=='pdf'" src="${preview_url}" style="${style}" id="preview-${oid}"> <embed tal:condition="ext=='pdf'" src="${preview_url}" style="${style}" id="preview-${oid}">
<tal:block tal:condition="preview_url and ext in ['jpg','jpeg','png','bmp','gif']"> <a id="a-preview-${oid}" class="label label-default" href="${structure: preview_url}" target="_blank"><i
<img src="${structure: preview_url}" style="width:100px;height:auto;"></img> class="fa fa-search"></i> View</a>
<br> </div>
</tal:block>
<a id="a-preview-${oid}" class="label label-default" href="${structure: preview_url}"
target="_blank" ><i class="fa fa-search"></i> View</a>
</p> </p>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!