feat(course_page.html): display course image on page
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% load static i18n wagtailcore_tags %}
|
{% load static i18n wagtailcore_tags wagtailimages_tags %}
|
||||||
|
|
||||||
{% block title %}{{ page.title }}{% endblock %}
|
{% block title %}{{ page.title }}{% endblock %}
|
||||||
|
|
||||||
@@ -16,6 +16,10 @@
|
|||||||
{{ page.title }}
|
{{ page.title }}
|
||||||
</h1>
|
</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 }}
|
{{ page.body|richtext }}
|
||||||
|
|
||||||
{% if user_has_access %}
|
{% if user_has_access %}
|
||||||
|
|||||||
Reference in New Issue
Block a user