From 49db33006020b346244596a11b74e8ff4c9d7e2d Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 31 Jan 2023 09:19:06 +0100 Subject: [PATCH] fix draft/published button --- teleforma/templates/teleforma/course_media.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/templates/teleforma/course_media.html b/teleforma/templates/teleforma/course_media.html index 5cfca091..7b56009d 100644 --- a/teleforma/templates/teleforma/course_media.html +++ b/teleforma/templates/teleforma/course_media.html @@ -51,7 +51,7 @@ $(document).ready(function(){ {% endblock extra_javascript %} {% block module-action %} -{% if media.file and media.is_published or user.is_superuser or user.is_staff %} +{% if media.file and media.conference.status == 3 or user.is_superuser or user.is_staff %} {% if not "video" in media.mime_type or request.user_agent.os.family == 'iOS' %}
 {% trans "Download" %} @@ -76,7 +76,7 @@ $(document).ready(function(){  {% trans "Video" %} {% endif %} {% if user.is_staff %} - {% if media.is_published %}{% trans " published" %}{% else %}{% trans " rejected" %}{% endif %} + {% if media.conference.status == 3 %}{% trans " published" %}{% else %}{% trans " rejected" %}{% endif %} {% endif %}
-- 2.39.5