fix(course_page.html): do not show unpublished modules

This commit is contained in:
2026-03-13 14:27:09 +01:00
parent 0e066941ad
commit 3f3dbfc341

View File

@@ -25,7 +25,7 @@
{% if user_has_access %} {% if user_has_access %}
<h2 class="not-prose text-2xl mt-8 mb-4 text-gray-700 font-semibold">{% trans "Modules" %}</h2> <h2 class="not-prose text-2xl mt-8 mb-4 text-gray-700 font-semibold">{% trans "Modules" %}</h2>
<ul class="list-disc list-inside"> <ul class="list-disc list-inside">
{% for module in page.get_children.specific %} {% for module in page.get_children.specific.live %}
<li> <li>
<a href="{{ module.url }}" class="text-blue-600 hover:underline">{{ module.title }}</a> <a href="{{ module.url }}" class="text-blue-600 hover:underline">{{ module.title }}</a>
</li> </li>