{% user_can_see course_page user 'SECURITY_CONTENTS' as can_see_contents %}
{% if can_see_contents %}
{% include 'lxp/snippets/activity_sidenav.html' %}
{% if activity.summary %}
{{ activity.summary | richtext }}
{% endif %}
{% with blocks=self.content %}
{% for block in blocks %}
{% with 'lxp/activity_blocks/'|add:block.block_type|add:'.html' as template %}
{% include template %}
{% endwith %}
{% endfor %}
{% endwith %}
{% if activity.related_links.all %}
Related links:
{% for link in activity.related_links.all %}