refactor: merged profile and dashboard page
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
{% for certificate in certificates %}
|
||||
{% set course = frappe.db.get_value("LMS Course", certificate.course, ["title", "name", "image"], as_dict=True) %}
|
||||
|
||||
<div class="common-card-style column-card">
|
||||
<div class="common-card-style column-card medium">
|
||||
<div class="font-weight-bold">
|
||||
{{ course.title }}
|
||||
</div>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -1,13 +1,7 @@
|
||||
{% set search_placeholder = frappe.db.get_single_value("LMS Settings", "search_placeholder") %}
|
||||
{% set portal_course_creation = frappe.db.get_single_value("LMS Settings", "portal_course_creation") %}
|
||||
|
||||
<div class="course-search-header">
|
||||
<input class="search" id="search-course" placeholder="{{ _(search_placeholder) or 'Search' }}">
|
||||
{% if portal_course_creation == "Anyone" or has_course_instructor_role() %}
|
||||
<a class="btn btn-secondary btn-md ml-2" href="/courses/new-course"> {{ _("Create a Course") }} </a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<input class="search" id="search-course" placeholder="{{ _(search_placeholder) or 'Search' }}">
|
||||
<div class="empty-state alert alert-dismissible search-empty-state hide">
|
||||
<a href="#" class="close-search-empty-state" aria-label="close">×</a>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user