summaryrefslogtreecommitdiff
path: root/templates/blocks
diff options
context:
space:
mode:
Diffstat (limited to 'templates/blocks')
-rw-r--r--templates/blocks/collaborator.html1
-rw-r--r--templates/blocks/content.html3
-rw-r--r--templates/blocks/gallery.html5
-rw-r--r--templates/blocks/galleryvideo.html8
-rw-r--r--templates/blocks/html.html3
-rw-r--r--templates/blocks/picture.html2
-rw-r--r--templates/blocks/video.html9
7 files changed, 31 insertions, 0 deletions
diff --git a/templates/blocks/collaborator.html b/templates/blocks/collaborator.html
new file mode 100644
index 0000000..90f91ad
--- /dev/null
+++ b/templates/blocks/collaborator.html
@@ -0,0 +1 @@
+<a href="{{ this.url }}">{{ this.collaborator }}</a>
diff --git a/templates/blocks/content.html b/templates/blocks/content.html
new file mode 100644
index 0000000..52b67d7
--- /dev/null
+++ b/templates/blocks/content.html
@@ -0,0 +1,3 @@
+<div class="dacontent">
+ {{this.content}}
+</div>
diff --git a/templates/blocks/gallery.html b/templates/blocks/gallery.html
new file mode 100644
index 0000000..d34bb5a
--- /dev/null
+++ b/templates/blocks/gallery.html
@@ -0,0 +1,5 @@
+<div class="gallery">
+ {% for item in this.gallery.blocks %}
+ {{ item }}
+ {% endfor %}
+</div>
diff --git a/templates/blocks/galleryvideo.html b/templates/blocks/galleryvideo.html
new file mode 100644
index 0000000..661337a
--- /dev/null
+++ b/templates/blocks/galleryvideo.html
@@ -0,0 +1,8 @@
+<div class="gallery-video">
+ <video class="" controls preload="metadata">
+ <source src="{{ this.url }}" type="video/mp4">
+ Your browser does not support HTML5 video.
+ </video>
+ <h4>{{ this.caption }}</h4>
+</div>
+
diff --git a/templates/blocks/html.html b/templates/blocks/html.html
new file mode 100644
index 0000000..40cee00
--- /dev/null
+++ b/templates/blocks/html.html
@@ -0,0 +1,3 @@
+<div class="html">
+ {{this.html}}
+</div>
diff --git a/templates/blocks/picture.html b/templates/blocks/picture.html
new file mode 100644
index 0000000..a75eb3e
--- /dev/null
+++ b/templates/blocks/picture.html
@@ -0,0 +1,2 @@
+{% set img = record.attachments.images.get(this.url) %}
+<img id="{{ this.url|replace('.','') }}" class="bigimage" src="{{img.thumbnail(800)|url}}" alt="{{ this.caption }}">
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>