Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3a1948d0
authored
Jan 02, 2025
by
aa.gusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan template readonly img
1 parent
fbef0a9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
21 deletions
opensipkd/base/views/widgets/readonly/file_upload.pt
opensipkd/base/views/widgets/readonly/file_upload.pt
View file @
3a1948d
...
@@ -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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment