From 89db9314ed7e80d9ad860b87bffb14fe5bdeeb83 Mon Sep 17 00:00:00 2001 From: bkfox Date: Fri, 29 May 2020 17:51:48 +0200 Subject: [PATCH] playing now --- aircox/templates/aircox/widgets/episode_item.html | 6 ++---- aircox/templates/aircox/widgets/page_item.html | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/aircox/templates/aircox/widgets/episode_item.html b/aircox/templates/aircox/widgets/episode_item.html index 33b1090..8fd2234 100644 --- a/aircox/templates/aircox/widgets/episode_item.html +++ b/aircox/templates/aircox/widgets/episode_item.html @@ -10,13 +10,11 @@ Context variables: {% load i18n easy_thumbnails_tags aircox %} +{% if diffusion and diffusion.is_now %}{% block css %}is-primary{% endblock %}{% endif %} + {% block title %} {% if not object.is_published and object.program.is_published %} - {% if diffusion and diffusion.is_now %} - - {% endif %} {{ object.title }} {% else %} diff --git a/aircox/templates/aircox/widgets/page_item.html b/aircox/templates/aircox/widgets/page_item.html index 9935a44..d824d3c 100644 --- a/aircox/templates/aircox/widgets/page_item.html +++ b/aircox/templates/aircox/widgets/page_item.html @@ -26,7 +26,7 @@ Context variables: {% else %} -
+
{% if has_cover|default_if_none:True %}