Don't show empty user course categories.

pull/2487/head
jmontoyaa 7 years ago
parent 179959c10e
commit aa33046a22
  1. 4
      main/template/default/user_portal/classic_courses_with_category.tpl

@ -1,7 +1,8 @@
{% if not categories is empty %}
<div class="classic-courses">
{% for category in categories %}
<div class="panel panel-default">
{% if category.courses %}
<div class="panel panel-default">
<div id="category-{{ category.id_category }}" class="panel-heading">
{{ category.title_category }}
</div>
@ -95,6 +96,7 @@
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}

Loading…
Cancel
Save