{% extends "templates/base.html" %} {% block title %}{{ topic.name }}{% endblock %} {% from "www/lms/macros/hero.html" import hero %} {% from "www/lms/macros/card.html" import null_card %} {% block head_include %} {% endblock %} {% macro card(content, index, length) %}
{{ content.content_type or '' }}
{{ content.content.name }}
{% if has_access %} {% endif %}
{% endmacro %} {% block content %}
{{ hero(topic.topic_name, topic.description, has_access, {'name': 'Course', 'url': '/lms/course?name=' + course +'&program=' + program}) }}
{% for content in contents %} {{ card(content, loop.index, topic.contents|length) }} {% endfor %} {% if contents %} {% for n in range( (3 - (contents|length)) %3) %} {{ null_card() }} {% endfor %} {% endif %}
{% endblock %}