From 54273dc1084574386c80975eee127bdbc04cf21b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 6 Jan 2020 14:53:29 +0100 Subject: [PATCH] add popup to schedule a stream --- panikdb/templates/emissions/episode_detail.html | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/panikdb/templates/emissions/episode_detail.html b/panikdb/templates/emissions/episode_detail.html index 48a6aa1..7240082 100644 --- a/panikdb/templates/emissions/episode_detail.html +++ b/panikdb/templates/emissions/episode_detail.html @@ -67,8 +67,8 @@ Tags : {% if can_manage and perms.emissions.delete_diffusion and not diffusion|is_already_in_soma %} {% endif %} -{% if soundfiles|integral and perms.nonstop.add_track and diffusion.datetime|date:"Y-m-d H:i" > now %} - {% if has_soma %} +{% if diffusion.datetime|date:"Y-m-d H:i" > now and has_soma %} + {% if soundfiles|integral and perms.nonstop.add_track %} {% if not diffusion|is_already_in_soma %} [programmer dans soma] {% else %} @@ -76,6 +76,13 @@ Tags : {% endif %} {% endif %} + {% if not soundfiles|integral and perms.nonstop.add_streameddiffusion %} + {% if not diffusion|is_already_in_soma %} + [programmer stream dans soma] + {% else %} + (stream déjà programmé dans soma) + {% endif %} + {% endif %} {% endif %} {% endfor %} -- 2.39.2