refactor: merged profile and dashboard page

This commit is contained in:
Jannat Patel
2022-10-11 17:23:36 +05:30
parent 662813b378
commit fdf1bbd1e2
16 changed files with 157 additions and 138 deletions
+9 -3
View File
@@ -1,12 +1,18 @@
<div class="{{ classes }}">
{% if courses | length %}
<div class="course-home-headings">
{{ title }}
</div>
<div class="cards-parent">
{% for course in courses %}
{{ widgets.CourseCard(course=course, read_only=False) }}
{% endfor %}
</div>
{% else %}
<div class="empty-state">
<img class="icon icon-xl" src="/assets/lms/icons/comment.svg">
<div class="empty-state-text">
<div class="empty-state-heading">{{ _("No {0}").format(title) }}</div>
<div class="course-meta">{{ _("There are no {0} on this site.").format(title.lower()) }}</div>
</div>
</div>
{% endif %}
</div>