From 5932851ecd4a6b478c7af9f918d0c3526b222cb1 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 31 Jan 2023 13:16:03 +0100 Subject: [PATCH] display conf status for professors --- teleforma/templates/teleforma/inc/media_list.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/teleforma/templates/teleforma/inc/media_list.html b/teleforma/templates/teleforma/inc/media_list.html index c287c2af..fd526ef4 100644 --- a/teleforma/templates/teleforma/inc/media_list.html +++ b/teleforma/templates/teleforma/inc/media_list.html @@ -53,10 +53,12 @@ {% conference_publication conference as publication %} - {% if publication.published and user.is_staff %} - - {% elif not publication.published and user.is_staff %} - + {% if user.is_staff or user.professor.count %} + {% if publication.published %} + + {% else %} + + {% endif %} {% endif %} {% if conference.video.file %} {% if not "video" in conference.video.mime_type or request.user_agent.os.family == 'iOS' %} -- 2.39.5