From: Guillaume Pellerin Date: Tue, 31 Jan 2023 08:19:06 +0000 (+0100) Subject: fix draft/published button X-Git-Tag: 2.9.0~80 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=49db33006020b346244596a11b74e8ff4c9d7e2d;p=teleforma.git fix draft/published button --- 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 %}