fix: minor issues

This commit is contained in:
Jannat Patel
2021-09-20 12:10:35 +05:30
parent 0ab708396a
commit 64048a8a18
16 changed files with 48 additions and 16 deletions

View File

@@ -47,10 +47,17 @@
{% if membership or lesson.include_in_preview or is_instructor %}
<div class="common-card-style lesson-content-card markdown-source">{{ lesson.render_html() }}</div>
<div class="common-card-style lesson-content-card markdown-source">
{% if is_instructor %}
<small class="alert alert-secondary alert-dismissible">
This lesson is not available for preview. As you are the Instructor of the course only you can see it.
<a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
</small>
{% endif %}
{{ lesson.render_html() }}</div>
{% else %}
<div class="common-card-style lesson-content-card">
<span>This lesson is not available for Preview. Please join the course to access this lesson. <a
<span>This lesson is not available for Preview. Please join the course to access it. <a
href="/courses/{{ course.name }}">Checkout Course Details.</a></span>
</div>
{% endif %}