Sfoglia il codice sorgente

Merge branch '1.11.x' of github.com:chamilo/chamilo-lms into 1.11.x

jmontoyaa 8 anni fa
parent
commit
1c1c5b08d7

+ 11 - 9
main/template/default/user_portal/classic_courses_without_category.tpl

@@ -57,15 +57,17 @@
                         </h4>
                         <div class="course-items-session">
                             <div class="list-teachers">
-                                {{ 'teacher.png' | img(16, 'Professor'|get_lang ) }}
-                                {% for teacher in item.teachers %}
-                                    {% set counter = counter + 1 %}
-                                    {% if counter > 1 %} | {% endif %}
-                                    <a href="{{ teacher.url }}" class="ajax"
-                                       data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
-                                        {{ teacher.firstname }} {{ teacher.lastname }}
-                                    </a>
-                                {% endfor %}
+                                {% if item.teachers|length > 0 %}
+                                    {{ 'teacher.png' | img(16, 'Professor'|get_lang ) }}
+                                    {% for teacher in item.teachers %}
+                                        {% set counter = counter + 1 %}
+                                        {% if counter > 1 %} | {% endif %}
+                                        <a href="{{ teacher.url }}" class="ajax"
+                                        data-title="{{ teacher.firstname }} {{ teacher.lastname }}">
+                                            {{ teacher.firstname }} {{ teacher.lastname }}
+                                        </a>
+                                    {% endfor %}
+                                {% endif %}
                             </div>
 
                             {% if item.student_info %}