From 41f7be4ebc3cf34ef091fbcebfff115f836d1626 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 26 Oct 2021 10:06:06 +0530 Subject: [PATCH] style: overview card --- school/patches.txt | 2 +- school/public/css/style.css | 6 +++++- school/www/courses/course.html | 4 ++-- school/www/profiles/profile.html | 6 +++--- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/school/patches.txt b/school/patches.txt index 36a7f54b..7c1bc406 100644 --- a/school/patches.txt +++ b/school/patches.txt @@ -18,5 +18,5 @@ execute:frappe.delete_doc("DocType", "Lessons") #06-10-2021 execute:frappe.delete_doc("DocType", "Chapter") #06-10-2021 execute:frappe.delete_doc("DocType", "Lesson") #06-10-2021 execute:frappe.delete_doc("DocType", "LMS Topic") #06-10-2021 -community.patches.v0_0.add_progress_to_membership #20-10-2021 +school.patches.v0_0.add_progress_to_membership #20-10-2021 execute:frappe.delete_doc("Workspace", "LMS", ignore_missing=True, force=True) #24-10-2021 diff --git a/school/public/css/style.css b/school/public/css/style.css index e50d3d77..0836c20d 100644 --- a/school/public/css/style.css +++ b/school/public/css/style.css @@ -246,6 +246,10 @@ input[type=checkbox] { margin-left: 10px; } +.overview-item { + display: flex; +} + .reviews-section { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); @@ -613,7 +617,7 @@ input[type=checkbox] { } .lesson-links { - display: block; + display: flex; padding: 0 1rem; margin-bottom: .25rem; color: inherit; diff --git a/school/www/courses/course.html b/school/www/courses/course.html index a1b6d3d3..565f1f36 100644 --- a/school/www/courses/course.html +++ b/school/www/courses/course.html @@ -193,13 +193,13 @@
{% if course.get_students() | length %} -
+
{{ course.get_students() | length }} Enrolled
{% endif %} {% if avg_rating %} -
+
{{ frappe.utils.flt(avg_rating, frappe.get_system_settings("float_precision") or 3) }} Rating
diff --git a/school/www/profiles/profile.html b/school/www/profiles/profile.html index 21f2e287..3785a205 100644 --- a/school/www/profiles/profile.html +++ b/school/www/profiles/profile.html @@ -82,19 +82,19 @@
{% if enrollment %} -
+
{{ enrollment }} Enrolled
{% endif %} {% if reviews %} -
+
{{ reviews }} Created
{% endif %} {% if mentorship %} -
+
{{ mentorship }} Mentored