From 8cf0d632943ba0f1452082c9fb54156b758b1fc4 Mon Sep 17 00:00:00 2001 From: Sylvain Boissel Date: Wed, 5 Jun 2024 11:36:25 +0200 Subject: [PATCH] Solves two little bugs (#146) --- .../templates/content_manager/blocks/card_vertical.html | 2 +- content_manager/templates/content_manager/blocks/video.html | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content_manager/templates/content_manager/blocks/card_vertical.html b/content_manager/templates/content_manager/blocks/card_vertical.html index b8423c9a..1eb8af4f 100644 --- a/content_manager/templates/content_manager/blocks/card_vertical.html +++ b/content_manager/templates/content_manager/blocks/card_vertical.html @@ -6,7 +6,7 @@ <{{ value.heading_tag | default:"h3" }} class="fr-card__title"> {% if value.link and value.link.url %} - {{ value.title }} {{value.link.url}} + {{ value.title }} {% if value.link.url.0 != '/' and request.get_host not in value.link.url %} {% translate "Opens a new window" %} {% endif %} diff --git a/content_manager/templates/content_manager/blocks/video.html b/content_manager/templates/content_manager/blocks/video.html index b6bb46af..126ee46b 100644 --- a/content_manager/templates/content_manager/blocks/video.html +++ b/content_manager/templates/content_manager/blocks/video.html @@ -9,7 +9,7 @@ {{ value.caption }} {% translate "Watch on the site" %} - {% if value.transcription %} + {% if value.transcription.content %} {% include_block value.transcription %} {% endif %} diff --git a/pyproject.toml b/pyproject.toml index 8acbb86e..aae23c4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "content-manager" -version = "1.5.0" +version = "1.5.1" description = "Gestionnaire de contenu permettant de créer et gérer un site internet basé sur le Système de design de l'État, accessible et responsive" authors = [ "Sébastien Reuiller ",