fix(course_page.html): do not show unpublished modules
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
{% if user_has_access %}
|
||||
<h2 class="not-prose text-2xl mt-8 mb-4 text-gray-700 font-semibold">{% trans "Modules" %}</h2>
|
||||
<ul class="list-disc list-inside">
|
||||
{% for module in page.get_children.specific %}
|
||||
{% for module in page.get_children.specific.live %}
|
||||
<li>
|
||||
<a href="{{ module.url }}" class="text-blue-600 hover:underline">{{ module.title }}</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user