Merge pull request #211 from pateljannat/preview-message

fix: preview message
This commit is contained in:
Jannat Patel
2021-09-27 13:00:46 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@
{% elif is_instructor and not lesson.include_in_preview %}
<a class="lesson-links"
title="This lesson is not available for preview but as an instructor you can access it."
title="This lesson is not available for preview. As you are the Instructor of the course only you can see it."
href="{{ course.get_learn_url(lesson.number) }}{{course.query_parameter}}"
data-course="{{ course.name }}">
{{ lesson.title }}

View File

@@ -48,7 +48,7 @@
{% if membership or lesson.include_in_preview or is_instructor %}
<div class="common-card-style lesson-content-card markdown-source">
{% if is_instructor %}
{% if is_instructor and not lesson.include_in_preview %}
<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>