mirror of
https://github.com/wekan/wekan.git
synced 2026-03-13 17:06:13 +01:00
At card attachments, show play and fullscreen controls for video webm/mp4/ogg, and play controls for audio mp3/ogg.
Thanks to luistiktok and xet7 ! Fixes #4013
This commit is contained in:
parent
6c0a958481
commit
bd9fbedbf9
2 changed files with 13 additions and 1 deletions
|
|
@ -26,6 +26,18 @@ template(name="attachmentsGalery")
|
||||||
if isUploaded
|
if isUploaded
|
||||||
if isImage
|
if isImage
|
||||||
img.attachment-thumbnail-img(src="{{url}}")
|
img.attachment-thumbnail-img(src="{{url}}")
|
||||||
|
else if($eq extension 'mp3')
|
||||||
|
video(width="100%" height="100%" controls="true")
|
||||||
|
source(src="{{url}}" type="audio/mpeg")
|
||||||
|
else if($eq extension 'ogg')
|
||||||
|
video(width="100%" height="100%" controls="true")
|
||||||
|
source(src="{{url}}" type="video/ogg")
|
||||||
|
else if($eq extension 'webm')
|
||||||
|
video(width="100%" height="100%" controls="true")
|
||||||
|
source(src="{{url}}" type="video/webm")
|
||||||
|
else if($eq extension 'mp4')
|
||||||
|
video(width="100%" height="100%" controls="true")
|
||||||
|
source(src="{{url}}" type="video/mp4")
|
||||||
else
|
else
|
||||||
span.attachment-thumbnail-ext= extension
|
span.attachment-thumbnail-ext= extension
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
margin: 10px 1% 0
|
margin: 10px 1% 0
|
||||||
text-align: center
|
text-align: center
|
||||||
border-radius: 3px
|
border-radius: 3px
|
||||||
overflow: hidden
|
overflow: auto
|
||||||
background: darken(white, 7%)
|
background: darken(white, 7%)
|
||||||
min-height: 120px
|
min-height: 120px
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue