summaryrefslogtreecommitdiff
path: root/templates/blocks/video.html
diff options
context:
space:
mode:
authorjoak <joak@nospace.at>2020-08-17 11:55:24 +0200
committerjoak <joak@nospace.at>2020-08-17 11:55:24 +0200
commitf60e9ccd5b046101903a79bf6afa0cf87fdd956c (patch)
treedb29d0f55a1bc3347b63341551fa05308554101d /templates/blocks/video.html
init
Diffstat (limited to 'templates/blocks/video.html')
-rw-r--r--templates/blocks/video.html9
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>