From: Frédéric Péters Date: Mon, 6 Jan 2020 13:53:29 +0000 (+0100) Subject: add popup to schedule a stream X-Git-Tag: v2021~254 X-Git-Url: https://git.0d.be/?p=panikdb.git;a=commitdiff_plain;h=54273dc1084574386c80975eee127bdbc04cf21b add popup to schedule a stream --- 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 %}