diff options
Diffstat (limited to 'templates/blocks/video.html')
-rw-r--r-- | templates/blocks/video.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/blocks/video.html b/templates/blocks/video.html new file mode 100644 index 0000000..b906e9d --- /dev/null +++ b/templates/blocks/video.html @@ -0,0 +1,9 @@ +<div class="videodiv"> + {%if this.caption %}<h2 class="gallerytitle">{{ this.caption }}</h2>{% endif %} + <div class="video"> + <video max-width="720px" preload="metadata" controls=""> + {% set video = record.attachments.videos.get(this.url) %} + <source src="{{ video|url }}" type="video/mp4"> + </video> + </div> +</div> |