fix: course card meta info
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
<svg class="icon icon-md">
|
||||
<use href="#icon-education"></use>
|
||||
</svg>
|
||||
{{ get_lessons(course.name) | length }} {{ _("Lessons") }}
|
||||
{{ get_lessons(course.name) | length }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
@@ -32,8 +32,6 @@
|
||||
|
||||
{% set student_count = get_students(course.name) | length %}
|
||||
{% set avg_rating = get_average_rating(course.name) %}
|
||||
{% if student_count or avg_rating %}
|
||||
<div class="vertically-center">
|
||||
{% if student_count %}
|
||||
<div class="vertically-center">
|
||||
<svg class="icon icon-md">
|
||||
@@ -44,7 +42,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if avg_rating %}
|
||||
<div class="vertically-center ml-3">
|
||||
<div class="vertically-center">
|
||||
<svg class="icon icon-md">
|
||||
<use href="#icon-star"></use>
|
||||
</svg>
|
||||
@@ -53,7 +51,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if course.paid_certificate %}
|
||||
<div class="vertically-center ml-3">
|
||||
<div class="vertically-center">
|
||||
<svg class="icon icon-md">
|
||||
<use href="#icon-badge"></use>
|
||||
</svg>
|
||||
@@ -62,9 +60,6 @@
|
||||
</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="course-card-title">{{ course.title }}</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user