fix: dashboard links, web form redirects and patch for status

This commit is contained in:
Jannat Patel
2022-03-15 16:51:39 +05:30
parent aa9ef65375
commit 27e1aec001
18 changed files with 99 additions and 46 deletions

View File

@@ -17,9 +17,11 @@
<div class="course-card-content">
<div class="course-card-meta">
{% if get_lessons(course.name) | length %}
<span>
{{ get_lessons(course.name) | length }} {{ _("Lessons") }}
</span>
<span> {{ get_lessons(course.name) | length }} {{ _("Lessons") }} </span>
{% endif %}
{% if course.status and course.status != "Approved"%}
{% set pill_color = "gray" if course.status == "In Progress" else "orange" %}
<span class="pull-right indicator-pill {{ pill_color }} "> {{ course.status }} </span>
{% endif %}
</div>
<div class="course-card-title">{{ course.title }}</div>