Compare commits
3 Commits
fix-global
...
only-show-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86596d0cfe | ||
|
|
9323cfd748 | ||
|
|
d125b02cec |
@@ -10,7 +10,8 @@ class CustomUser(User):
|
|||||||
"""
|
"""
|
||||||
return frappe.get_all(
|
return frappe.get_all(
|
||||||
'LMS Course', {
|
'LMS Course', {
|
||||||
'owner': self.name
|
'owner': self.name,
|
||||||
|
'is_published': True
|
||||||
})
|
})
|
||||||
|
|
||||||
def get_palette(self):
|
def get_palette(self):
|
||||||
@@ -62,9 +63,16 @@ class CustomUser(User):
|
|||||||
|
|
||||||
def get_mentored_courses(self):
|
def get_mentored_courses(self):
|
||||||
""" Returns all courses mentored by this user """
|
""" Returns all courses mentored by this user """
|
||||||
return frappe.get_all("LMS Course Mentor Mapping",
|
mentored_courses = []
|
||||||
|
mapping = frappe.get_all("LMS Course Mentor Mapping",
|
||||||
{
|
{
|
||||||
"mentor": self.name
|
"mentor": self.name,
|
||||||
},
|
},
|
||||||
["name", "course"]
|
["name", "course"]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
for map in mapping:
|
||||||
|
if frappe.db.get_value("LMS Course", map.course, "is_published"):
|
||||||
|
mentored_courses.append(map)
|
||||||
|
|
||||||
|
return mentored_courses
|
||||||
|
|||||||
@@ -390,6 +390,13 @@ input[type=checkbox] {
|
|||||||
letter-spacing: -0.0175em
|
letter-spacing: -0.0175em
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 576px) and (max-width: 992px) {
|
||||||
|
.container {
|
||||||
|
padding-left: 1rem;
|
||||||
|
padding-right: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.button-links:hover {
|
.button-links:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
@@ -648,7 +655,6 @@ div.custom-checkbox>label>input:checked+img {
|
|||||||
|
|
||||||
.course-home-outline {
|
.course-home-outline {
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
flex: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-title {
|
.small-title {
|
||||||
@@ -666,6 +672,7 @@ div.custom-checkbox>label>input:checked+img {
|
|||||||
.chapter-description {
|
.chapter-description {
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
|
padding-right: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chapter-icon {
|
.chapter-icon {
|
||||||
@@ -673,26 +680,39 @@ div.custom-checkbox>label>input:checked+img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.course-outline-instructor-parent {
|
.course-outline-instructor-parent {
|
||||||
display: flex;
|
display: grid;
|
||||||
justify-content: space-between;
|
grid-gap: 2rem;
|
||||||
|
grid-template-columns: 4fr 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.course-outline-instructor-parent {
|
||||||
|
grid-gap: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
.course-outline-instructor-parent {
|
.course-outline-instructor-parent {
|
||||||
flex-direction: column;
|
|
||||||
padding: 0px 24px 0px;
|
padding: 0px 24px 0px;
|
||||||
|
grid-template-columns: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.profile-parent-section {
|
.profile-parent-section {
|
||||||
display: flex;
|
display: grid;
|
||||||
justify-content: space-between;
|
grid-gap: 2rem;
|
||||||
|
grid-template-columns: 4fr 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.profile-parent-section {
|
||||||
|
grid-gap: 1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
.profile-parent-section {
|
.profile-parent-section {
|
||||||
flex-direction: column;
|
grid-template-columns: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -724,18 +744,6 @@ div.custom-checkbox>label>input:checked+img {
|
|||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1024px) {
|
|
||||||
.course-overview-section {
|
|
||||||
margin-left: 2rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 600px) {
|
|
||||||
.course-overview-section {
|
|
||||||
margin-left: 1rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.lesson-info {
|
.lesson-info {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 250%;
|
line-height: 250%;
|
||||||
@@ -893,14 +901,18 @@ div.custom-checkbox>label>input:checked+img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.description-card {
|
.description-card {
|
||||||
padding: 24px;
|
padding: 1.5rem;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overview-card {
|
.overview-card {
|
||||||
padding: 24px 26px 24px;
|
padding: 1.5rem;
|
||||||
width: 256px;
|
width: 256px;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
display: grid;
|
||||||
|
-moz-column-gap: 1rem;
|
||||||
|
column-gap: 1rem;
|
||||||
|
row-gap: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
@@ -933,10 +945,6 @@ div.custom-checkbox>label>input:checked+img {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.overtime-item {
|
|
||||||
margin: 16px 0px 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.view-all-mentors {
|
.view-all-mentors {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -1005,8 +1013,7 @@ div.custom-checkbox>label>input:checked+img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.course-details-outline {
|
.course-details-outline {
|
||||||
margin-top: 16px;
|
margin-top: 1rem;
|
||||||
flex: 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.lesson-content-card {
|
.lesson-content-card {
|
||||||
@@ -1015,14 +1022,15 @@ div.custom-checkbox>label>input:checked+img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.course-content-parent {
|
.course-content-parent {
|
||||||
display: flex;
|
display: grid;
|
||||||
justify-content: space-between;
|
grid-gap: 2rem;
|
||||||
|
grid-template-columns: 2fr minmax(600px, 5fr);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 1024px) {
|
||||||
.course-content-parent {
|
.course-content-parent {
|
||||||
|
display: flex;
|
||||||
flex-direction: column-reverse;
|
flex-direction: column-reverse;
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1037,8 +1045,7 @@ div.custom-checkbox>label>input:checked+img {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.lesson-pagination-parent {
|
.lesson-pagination-parent {
|
||||||
margin: 1rem 0px 0px 2rem;
|
margin-top: 1rem;
|
||||||
flex: 3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
@@ -1209,12 +1216,6 @@ div.custom-checkbox>label>input:checked+img {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 600px) {
|
|
||||||
.course-creator-progress-parent {
|
|
||||||
margin-left: 2rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.course-creator-section {
|
.course-creator-section {
|
||||||
margin-top: 3rem;
|
margin-top: 3rem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user