feat(course_page.html): display course image on page

This commit is contained in:
2026-03-12 14:21:46 +01:00
parent d6dbfb92ce
commit 0cd748a9eb

View File

@@ -1,5 +1,5 @@
{% extends "base.html" %}
{% load static i18n wagtailcore_tags %}
{% load static i18n wagtailcore_tags wagtailimages_tags %}
{% block title %}{{ page.title }}{% endblock %}
@@ -16,6 +16,10 @@
{{ page.title }}
</h1>
{% if page.course_image %}
{% image page.course_image original alt=page.title class="w-full h-auto rounded-lg mb-6" %}
{% endif %}
{{ page.body|richtext }}
{% if user_has_access %}