]> git.parisson.com Git - teleforma.git/commitdiff
display conf status for professors
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 31 Jan 2023 12:16:03 +0000 (13:16 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 31 Jan 2023 12:16:24 +0000 (13:16 +0100)
teleforma/templates/teleforma/inc/media_list.html

index c287c2afd52a67ee276c7ec40826179ff6450cb3..fd526ef4e204c7f34843cd9f22c965068a2d441d 100644 (file)
             
             {% conference_publication conference as publication %}
             <td {% if forloop.first %}class="border-top"{% endif %} width="10%" align="center">
-            {% if publication.published and user.is_staff %}
-             <img src="/static/teleforma/images/ok.png" style="vertical-align:middle" alt="" title="{% trans ' published' %}" />
-            {% elif not publication.published and user.is_staff %}
-             <img src="/static/teleforma/images/delete.png" style="vertical-align:middle" alt="" title="{% trans ' rejected' %}" />
+            {% if user.is_staff or user.professor.count %}
+                {% if publication.published %}
+                    <img src="/static/teleforma/images/ok.png" style="vertical-align:middle" alt="" title="{% trans ' published' %}" />
+                {% else %}
+                    <img src="/static/teleforma/images/delete.png" style="vertical-align:middle" alt="" title="{% trans ' rejected' %}" />
+                {% endif %}
             {% endif %}
             {% if conference.video.file %}
                 {% if not "video" in conference.video.mime_type or request.user_agent.os.family == 'iOS' %}