fix: no preview message

This commit is contained in:
Jannat Patel
2022-09-06 11:38:40 +05:30
parent 36aca1e664
commit ce7f3ffca9
2 changed files with 6 additions and 6 deletions

View File

@@ -94,8 +94,8 @@
{% elif ins_len == 2 %}
{{ instructors[0].full_name.split(" ")[0] }} and {{ instructors[1].full_name.split(" ")[0] }}
{% else %}
{% set suffix = "other" if ins_len - 2 == 1 else "others" %}
{{ instructors[0].full_name.split(" ")[0] }}, {{ instructors[1].full_name.split(" ")[0] }} and {{ ins_len - 2 }} {{ suffix }}
{% set suffix = "other" if ins_len - 1 == 1 else "others" %}
{{ instructors[0].full_name.split(" ")[0] }} and {{ ins_len - 1 }} {{ suffix }}
{% endif %}
</span>
</a>

View File

@@ -95,8 +95,8 @@
{% elif ins_len == 2 %}
{{ instructors[0].full_name.split(" ")[0] }} and {{ instructors[1].full_name.split(" ")[0] }}
{% else %}
{% set suffix = "other" if ins_len - 2 == 1 else "others" %}
{{ instructors[0].full_name.split(" ")[0] }}, {{ instructors[1].full_name.split(" ")[0] }} and {{ ins_len - 2 }} {{ suffix }}
{% set suffix = "other" if ins_len - 1 == 1 else "others" %}
{{ instructors[0].full_name.split(" ")[0] }} and {{ ins_len - 1 }} {{ suffix }}
{% endif %}
</span>
</a>
@@ -124,9 +124,9 @@
{% set course_link = "<a class='join-batch' data-course=" + course.name | urlencode + " href=''>" + _('here') + "</a>" %}
<div class="">
<div>
{{ _("This lesson is not available for preview.
{{ _("There is no preview available for this lesson.
Please join the course to access it.
Click {0} to join the course.").format(course_link) }}
Click {0} to enroll.").format(course_link) }}
</div>
</div>
{% endif %}