Commit e1893ee0 authored by ty kayn's avatar ty kayn

display videos

parent b4e99712
......@@ -40,3 +40,8 @@ a {
.hidden {
display: none;
}
video{
width: 100%;
border: solid #000;
}
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment