From 4c8869319367fb366d1a06088cf31378b1bc9fd7 Mon Sep 17 00:00:00 2001 From: Simon Caminada Date: Thu, 15 Mar 2018 11:21:41 +0000 Subject: [PATCH] install app files for djangocms-video==2.0.4 --- .../djangocms_video/default/.aldryn-folder | 0 templates/djangocms_video/default/source.html | 17 +++++++++++ templates/djangocms_video/default/track.html | 18 ++++++++++++ .../djangocms_video/default/video_player.html | 29 +++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 templates/djangocms_video/default/.aldryn-folder create mode 100644 templates/djangocms_video/default/source.html create mode 100644 templates/djangocms_video/default/track.html create mode 100644 templates/djangocms_video/default/video_player.html diff --git a/templates/djangocms_video/default/.aldryn-folder b/templates/djangocms_video/default/.aldryn-folder new file mode 100644 index 0000000..e69de29 diff --git a/templates/djangocms_video/default/source.html b/templates/djangocms_video/default/source.html new file mode 100644 index 0000000..6034c00 --- /dev/null +++ b/templates/djangocms_video/default/source.html @@ -0,0 +1,17 @@ +{% load i18n cms_tags %} + +{% if not disabled %} + {% with instance.source_file.extension as ext %} + + {% endwith %} +{% endif %} + +{% comment %} + # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video + # https://github.com/divio/django-filer/blob/master/filer/models/filemodels.py + {{ instance.source_file }} + # Available variables: + {{ instance.text_title }} + {{ instance.text_description }} + {{ instance.attributes_str }} +{% endcomment %} diff --git a/templates/djangocms_video/default/track.html b/templates/djangocms_video/default/track.html new file mode 100644 index 0000000..239a799 --- /dev/null +++ b/templates/djangocms_video/default/track.html @@ -0,0 +1,18 @@ +{% if not disabled %} + +{% endif %} + +{% comment %} + # https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track + # https://github.com/divio/django-filer/blob/master/filer/models/foldermodels.py + {{ instance.src }} + # Available variables: + {{ instance.kind }} + {{ instance.srclang }} + {{ instance.label }} + {{ instance.attributes_str }} +{% endcomment %} diff --git a/templates/djangocms_video/default/video_player.html b/templates/djangocms_video/default/video_player.html new file mode 100644 index 0000000..1eb8277 --- /dev/null +++ b/templates/djangocms_video/default/video_player.html @@ -0,0 +1,29 @@ +{% load i18n cms_tags %} + +{% if instance.embed_link %} + {# show iframe if embed_link is provided #} + + {% with disabled=instance.embed_link %} + {% for plugin in instance.child_plugin_instances %} + {% render_plugin plugin %} + {% endfor %} + {% endwith %} +{% else %} + {# render or plugins #} + +{% endif %} + +{% comment %} + # Available variables: + {{ instance.template }} + {{ instance.label }} + {{ instance.embed_link }} + {{ instance.poster }} + {{ instance.attributes_str }} +{% endcomment %}