fix: course page created by administrator

This commit is contained in:
pateljannat
2021-04-21 12:58:17 +05:30
parent b09ec1e29d
commit 3405de9394
3 changed files with 13 additions and 2 deletions

View File

@@ -96,7 +96,7 @@
<button class="btn btn-dark btn-enroll float-right" data-course="{{ course.name }}">Enroll</button>
{% endif %} -->
<h2 class="course-title" data-course={{ course.name | urlencode }}>{{ course.title }}</h2>
{{course.short_introduction}}
{% if course.short_introduction %} {{course.short_introduction}} {% endif %}
</div>
{% if course.video_link %}
<div>
@@ -192,10 +192,12 @@
</div>
</div>
{% endif %}
{% if course.description %}
<div>
<h4 class="margin-bottom mt-5">About the Course</h4>
<div class="p-5"> {{frappe.utils.md_to_html(course.description)}} </div>
</div>
{% endif %}
<div class="margin-bottom">
<h4 class="margin-bottom">Instructor</h4>
<div class="d-flex align-items-center">
@@ -208,6 +210,7 @@
</div>
</div>
</div>
{% if mentors %}
<div class="margin-bottom">
<h4 class="margin-bottom">Mentors</h4>
<div class="d-flex">
@@ -229,6 +232,7 @@
{% endfor %}
</div>
</div>
{% endif %}
{% if not is_mentor %}
<div class="pt-5 mentor-request">
Interested to mentor this course? <span class="apply-now" data-course={{course.name | urlencode}}