Merge branch 'main' of https://github.com/frappe/lms into lms-frappe-ui

This commit is contained in:
Jannat Patel
2023-12-18 11:31:35 +05:30
4 changed files with 11 additions and 9 deletions

View File

@@ -812,7 +812,7 @@ const set_calendar_range = (calendar, events) => {
);
$(".calendar-range").text(`${calendar_date}`);
if (moment(events[0].date).isSameOrBefore(moment(calendar)))
if (moment(calendar_date).isSameOrBefore(moment(events[0].date)))
$("#prev-week").hide();
else $("#prev-week").show();

View File

@@ -6,8 +6,8 @@ course.title }} {% endblock %} {% block page_content %}
{{ frappe.db.count("Cohort Subgroup", {"cohort": cohort.name}) }} {{
_("Subgroups") }} | {{ frappe.db.count("Cohort Mentor", {"cohort":
cohort.name}) }} {{ _("Mentors") }} | {{ frappe.db.count("LMS Enrollment",
{"cohort": cohort.name}) }} {{ _("Students") }} | {{ frappe.db.count("Cohort
Join Request", {"cohort": cohort.name}) }} {{ _("Join Requests") }}
{"cohort": cohort.name}) }} {{ _("Students") }}
| {{ frappe.db.count("Cohort Join Request", {"cohort": cohort.name}) }} {{ _("Join Requests") }}
</p>
{% if is_mentor %} {% set sg = mentor.get_subgroup() %}

View File

@@ -24,9 +24,9 @@ course.title }} {% endblock %} {% block page_content %} {% if cohorts %}
<p class="mb-0">
{{ frappe.db.count("Cohort Subgroup", {"cohort": cohort.name}) }} {{
_("Subgroups") }} | {{ frappe.db.count("Cohort Mentor", {"cohort":
cohort.name}) }} {{ _("Mentors") }} | {{ frappe.db.count("LMS
Enrollment", {"cohort": cohort.name}) }} {{ _("Students") }} | {{
frappe.db.count("Cohort Join Request", {"cohort": cohort.name}) }}
cohort.name}) }} {{ _("Mentors") }}
| {{ frappe.db.count("LMS Enrollment", {"cohort": cohort.name}) }} {{ _("Students") }}
| {{ frappe.db.count("Cohort Join Request", {"cohort": cohort.name}) }}
{{ _("Join Requests") }}
</p>