From 2ee9209ba43f60f540801df20c09b6f8551b5b9f Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 1 Nov 2016 12:16:02 +0100 Subject: [PATCH] [mod] remove useless if --- prosopopee/themes/exposure/templates/index.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/prosopopee/themes/exposure/templates/index.html b/prosopopee/themes/exposure/templates/index.html index 473b583..22c18d9 100644 --- a/prosopopee/themes/exposure/templates/index.html +++ b/prosopopee/themes/exposure/templates/index.html @@ -26,19 +26,15 @@ {% if gallery.cover_type == "video" %} {% set video = Video(gallery.cover) %} {{ video.copy() }} - {% else %} - {% set cover = Image(gallery.cover) %} - {{ cover.copy() }} - {% endif %} - {% if video %} - {% set video = "" %} {% else %} + {% set cover = Image(gallery.cover) %} + {{ cover.copy() }} {% endif %}