{% extends "templates/base.html" %} {% block title %}Topic Title{% endblock %} {% from "www/lms/macros/hero.html" import hero %} {% 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 %}
{% endblock %}