dashboard and patch for lesson
This commit is contained in:
@@ -73,9 +73,9 @@ input[type=checkbox] {
|
||||
}
|
||||
|
||||
.common-page-style {
|
||||
padding-bottom: 5rem;
|
||||
padding: 4rem 0 5rem;
|
||||
min-height: 60vh;
|
||||
padding-top: 3rem;
|
||||
font-size: var(--text-base);
|
||||
}
|
||||
|
||||
.common-card-style {
|
||||
@@ -1226,7 +1226,7 @@ pre {
|
||||
width: fit-content;
|
||||
position: fixed;
|
||||
top: 40%;
|
||||
right: 7%;
|
||||
right: 10%;
|
||||
max-width: 400px;
|
||||
z-index: 4;
|
||||
}
|
||||
@@ -1426,3 +1426,23 @@ pre {
|
||||
.carousel-inner {
|
||||
overflow: inherit;
|
||||
}
|
||||
|
||||
.dashboard .nav-link {
|
||||
color: var(--text-muted);
|
||||
padding: var(--padding-md) 0;
|
||||
margin-right: var(--margin-xl);
|
||||
}
|
||||
|
||||
.dashboard .nav-link.active {
|
||||
font-weight: 600;
|
||||
border-bottom: 1px solid var(--primary);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.dashboard .nav-link:hover {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.dashboard .nav {
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
frappe.ready(() => {
|
||||
hide_profile_for_guest_users();
|
||||
hide_profile_and_dashboard_for_guest_users();
|
||||
});
|
||||
|
||||
const hide_profile_for_guest_users = () => {
|
||||
const hide_profile_and_dashboard_for_guest_users = () => {
|
||||
if (frappe.session.user == "Guest") {
|
||||
var link_array = $('.nav-link').filter((i, elem) => $(elem).text().trim() === "My Profile");
|
||||
link_array.length && $(link_array[0]).addClass("hide");
|
||||
let links = $('.nav-link').filter((i, elem) => $(elem).text().trim() === "My Profile" || $(elem).text().trim() === "Dashboard");
|
||||
links.length && links.each((i, elem) => $(elem).addClass("hide"));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user