feat(course_page.html): show notice if course doesn't have an assigned product

This commit is contained in:
2026-05-20 19:14:59 +02:00
parent 365b28a165
commit 3338a1d3e7

View File

@@ -49,6 +49,10 @@
<a href="{% url 'account_signup' %}?next={{ request.path }}" class="mt-4 inline-block bg-green-600 text-white px-4 py-2 rounded hover:bg-green-700 transition ml-2">{% trans "Sign Up" %}</a>
</div>
{% elif not page.purchasable_products.exists %}
<div class="not-prose mt-8 p-4 bg-gray-100 border-l-4 border-gray-500 text-gray-700">
<p>{% trans "Course is not yet available for purchase. Please check back later." %}</p>
</div>
{% else %}
<div class="not-prose mt-8 p-4 bg-yellow-100 border-l-4 border-yellow-500 text-yellow-700">
<p>{% trans "You don't have access to this course. Please purchase it to view the modules." %}</p>