-
Notifications
You must be signed in to change notification settings - Fork 543
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58abfd0
commit 145342b
Showing
10 changed files
with
62 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 0 additions & 22 deletions
22
lms/lms/web_template/courses_enrolled/courses_enrolled.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,9 @@ | ||
{% set enrolled = get_enrolled_courses().in_progress + get_enrolled_courses().completed %} | ||
|
||
|
||
{% if enrolled | length %} | ||
<div class="cards-parent"> | ||
{% for course in enrolled %} | ||
{{ widgets.CourseCard(course=course) }} | ||
{% endfor %} | ||
</div> | ||
|
||
|
||
{% else %} | ||
{% set site_name = frappe.db.get_single_value("System Settings", "app_name") %} | ||
<div class="empty-state p-5"> | ||
<div style="text-align: left; flex: 1;"> | ||
<div class="text-center"> | ||
<div class="empty-state-heading">{{ _("You haven't enrolled for any courses") }}</div> | ||
<div class="course-meta mb-6">{{ _("Here are a few courses we recommend for you to get started with {0}").format(site_name) }}</div> | ||
</div> | ||
{% set recommended_courses = get_popular_courses() %} | ||
<div class="cards-parent"> | ||
{% for course in recommended_courses %} | ||
{% if course %} | ||
{% set course_details = frappe.get_doc("LMS Course", course.course) %} | ||
{{ widgets.CourseCard(course=course_details) }} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} |