]> git.parisson.com Git - teleforma.git/commitdiff
[documents] fix multiple course_type by document
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 12 May 2020 20:10:25 +0000 (22:10 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 12 May 2020 20:10:25 +0000 (22:10 +0200)
teleforma/templates/teleforma/inc/document_list.html

index 3b84f3c6502bd72d66b36af2fb341086a95f3204..236a15a685351359e5e3867c5a6d3d59374b1151 100644 (file)
 <table class="listing" width="100%">
     <tbody>
         {% for doc in docs|from_course_type:type|from_doc_type:doc_type|from_period:period|published %}
-        {% if doc.course_type.all|length > 1 and type_counter > 1 %}
-        {% else %}
         <tr>
         <td {% if forloop.first %}class="border-top"{% endif %} width="60%">{% if doc.file %}<a href="{% url teleforma-document-view doc.id %}" target="_blank" title="{% trans "View" %}"><img src="/static//teleforma/images/application-msword.png" style="vertical-align:middle" alt="" />{% endif %} {{ doc.title }}{% if doc.file %}</a>{% endif %}</td>
         <td {% if forloop.first %}class="border-top"{% endif %} width="35%">{{ doc.date_added }}</td>
         <td {% if forloop.first %}class="border-top"{% endif %} width="5%" align="center">{% if doc.file %}<a href="{% url teleforma-document-download doc.id %}"><img src="/static/teleforma/images/download.png" style="vertical-align:middle" alt="" title="{% trans "Download" %}" /></a>{% endif %}</td>
         </tr>
-        {% endif %}
     {% endfor %}
     </tbody>
 </table>