From fc19c65509b254f70f8627d5a2509491a65bddfa Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 25 Jun 2021 12:03:14 +0200 Subject: [PATCH] fix audio publish --- teleforma/templates/teleforma/course_media.html | 6 +++--- teleforma/templates/teleforma/course_media_transcoded.html | 7 +++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/teleforma/templates/teleforma/course_media.html b/teleforma/templates/teleforma/course_media.html index 3bbea55e..1aa5bca9 100644 --- a/teleforma/templates/teleforma/course_media.html +++ b/teleforma/templates/teleforma/course_media.html @@ -71,13 +71,13 @@ $(document).ready(function(){
{% if "video" in media.mime_type %} -  {% trans "Audio" %} +  {% trans "Audio" %} {% endif %} {% if "audio" in media.mime_type %} -  {% trans "Video" %} +  {% trans "Video" %} {% endif %} {% if user.is_staff %} - {% if media.is_published %}{% trans " published" %}{% else %}{% trans " rejected" %}{% endif %} + {% if media.is_published %}{% trans " published" %}{% else %}{% trans " rejected" %}{% endif %} {% endif %}
diff --git a/teleforma/templates/teleforma/course_media_transcoded.html b/teleforma/templates/teleforma/course_media_transcoded.html index 74472cd4..1b42d121 100644 --- a/teleforma/templates/teleforma/course_media_transcoded.html +++ b/teleforma/templates/teleforma/course_media_transcoded.html @@ -34,10 +34,13 @@ $(document).ready(function(){
{% if "video" in media_transcoded.mime_type %} -  {% trans "Audio" %} +  {% trans "Audio" %} {% endif %} {% if "audio" in media_transcoded.mime_type %} -  {% trans "Video" %} +  {% trans "Video" %} + {% endif %} + {% if user.is_staff %} + {% if media_transcoded.is_published %}{% trans " published" %}{% else %}{% trans " rejected" %}{% endif %} {% endif %}
-- 2.39.5