fix: logo dimensions

This commit is contained in:
Jannat Patel
2022-01-03 09:40:30 +05:30
parent 8aceaf0595
commit 7c12d094c5
2 changed files with 10 additions and 8 deletions

View File

@@ -71,8 +71,8 @@ class CustomUser(User):
frappe.throw(_("Skills must be unique")) frappe.throw(_("Skills must be unique"))
def validate_completion(self): def validate_completion(self):
all_fields_have_value = True
if frappe.db.get_single_value("LMS Settings", "force_profile_completion"): if frappe.db.get_single_value("LMS Settings", "force_profile_completion"):
all_fields_have_value = True
profile_mandatory_fields = frappe.get_hooks("profile_mandatory_fields") profile_mandatory_fields = frappe.get_hooks("profile_mandatory_fields")
docfields = frappe.get_meta(self.doctype).fields docfields = frappe.get_meta(self.doctype).fields

View File

@@ -81,20 +81,20 @@
<div class="common-card-style overview-card small-title"> <div class="common-card-style overview-card small-title">
{% if enrollment %} {% if enrollment %}
<div class="overview-item"> <div class="overview-item">
<img class="icon-background mr-1" src="/assets/school/icons/course.svg" /> <img class="mr-1" src="/assets/school/icons/course.svg" />
{{ enrollment }} {% if enrollment > 1 %} Courses {% else %} Course {% endif %} Taken <span> {{ enrollment }} {% if enrollment > 1 %} Courses {% else %} Course {% endif %} Taken </span>
</div> </div>
{% endif %} {% endif %}
{% if reviews %} {% if reviews %}
<div class="overview-item"> <div class="overview-item">
<img class="icon-background mr-1" src="/assets/school/icons/rating.svg" /> <img class="mr-1" src="/assets/school/icons/rating.svg" />
{{ reviews }} {% if reviews > 1 %} Courses {% else %} Course {% endif %} Reviewed <span> {{ reviews }} {% if reviews > 1 %} Courses {% else %} Course {% endif %} Reviewed </span>
</div> </div>
{% endif %} {% endif %}
{% if mentorship %} {% if mentorship %}
<div class="overview-item"> <div class="overview-item">
<img class="icon-background mr-1" src="/assets/school/icons/calendar.svg" /> <img class="mr-1" src="/assets/school/icons/calendar.svg" />
{{ mentorship }} {% if mentorship > 1 %} Courses {% else %} Course {% endif %} Mentored <span> {{ mentorship }} {% if mentorship > 1 %} Courses {% else %} Course {% endif %} Mentored </span>
</div> </div>
{% endif %} {% endif %}
</div> </div>
@@ -238,6 +238,7 @@
{% endmacro %} {% endmacro %}
{% macro Contact(member) %} {% macro Contact(member) %}
{% if not hide_primary_contact and member.email and member.mobile_no and member.linkedin and member.github and member.medium %}
<div class="education-details"> <div class="education-details">
<div class="course-home-headings"> {{ _("Contact") }} </div> <div class="course-home-headings"> {{ _("Contact") }} </div>
<div class="common-card-style overview-card"> <div class="common-card-style overview-card">
@@ -269,6 +270,7 @@
{% endif %} {% endif %}
</div> </div>
</div> </div>
{% endif %}
{% endmacro %} {% endmacro %}
{% macro Skills(member) %} {% macro Skills(member) %}