{% with courses=category.get_courses %}
{% if courses %}
{% trans "Related courses" %}
{% for course in courses %}
{% if course.extended_object.publisher_is_draft or course.check_publication %}
{% include "courses/cms/fragment_course_glimpse.html" with course=course %}
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
{% with children_categories=category.get_children_categories %}
{% if children_categories %}
{% trans "Sub categories" %}
{% for child_category in children_categories %}
{% include "courses/cms/fragment_category_glimpse.html" with category=child_category %}
{% endfor %}
{% endif %}
{% endwith %}
{% with blogposts=category.get_blogposts %}
{% if blogposts %}
{% endif %}
{% endwith %}
{% with persons=category.get_persons %}
{% if persons %}
{% trans "Related persons" %}
{% for person in persons %}
{% if person.extended_object.publisher_is_draft %}
{% include "courses/cms/fragment_person_glimpse.html" %}
{% elif person.check_publication %}
{% include "courses/cms/fragment_person_glimpse.html" %}
{% endif %}
{% endfor %}