display videos

This commit is contained in:
Baptiste Lemoine 2020-07-20 12:48:11 +02:00
parent b4e99712b9
commit e1893ee0a0
2 changed files with 12 additions and 6 deletions

View File

@ -40,3 +40,8 @@ a {
.hidden {
display: none;
}
video{
width: 100%;
border: solid #000;
}

View File

@ -60,14 +60,15 @@ html(lang="en")
each media in oredredItem['object'].attachment
div.media-gallery
div.counter.hidden #{oredredItem['object'].attachment.length}
if(media.mediaType.search('video'))
if(media.mediaType.search('video') != -1)
figure.media-media-displayed.media-image
a(href=media.href)
video(src=media.href)
span Media vidéo
elseif(media.mediaType.search('audio'))
span Media audio
elseif(media.mediaType.search('image'))
span Media vidéo
video(src=media.href,controls=controls)
if(media.mediaType.search('audio') != -1)
a(href=media.href)
span Media audio
if(media.mediaType.search('image') != -1)
figure.media-media-displayed.media-image
a(href=media.href)
img(src=media.href,alt=media.href)