From fdc948b14b3bc43c66ca571ea20810495d9ec5f0 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Wed, 3 May 2017 19:04:16 +0200 Subject: [PATCH] fix video on light theme --- .../themes/light/templates/sections/bordered-picture.html | 7 ++++--- .../themes/light/templates/sections/full-picture.html | 5 +++-- .../themes/light/templates/sections/pictures-group.html | 8 ++++---- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/prosopopee/themes/light/templates/sections/bordered-picture.html b/prosopopee/themes/light/templates/sections/bordered-picture.html index 3d23ffa..53474ed 100644 --- a/prosopopee/themes/light/templates/sections/bordered-picture.html +++ b/prosopopee/themes/light/templates/sections/bordered-picture.html @@ -5,16 +5,17 @@ {% endif %} {% if section.image.type == "video" %} {% set video = Video(section.image) %} +{% set format = settings.ffmpeg.extension %} {{ video.copy() }} {% else %} {% set image = Image(section.image) %} -{% set caption = section.text %} {{ image.copy() }} {% endif %} +{% set caption = section.text %} {% if video %}
-
{% else %} diff --git a/prosopopee/themes/light/templates/sections/full-picture.html b/prosopopee/themes/light/templates/sections/full-picture.html index 309e067..c709961 100644 --- a/prosopopee/themes/light/templates/sections/full-picture.html +++ b/prosopopee/themes/light/templates/sections/full-picture.html @@ -5,6 +5,7 @@ {% endif %} {% if section.image.type == "video" %} {% set video = Video(section.image) %} +{% set format = settings.ffmpeg.extension %} {{ video.copy() }} {% else %} {% set image = Image(section.image) %} @@ -13,8 +14,8 @@
{% if video %} -