diff --git a/lms/lms/widgets/CourseOutline.html b/lms/lms/widgets/CourseOutline.html
index a79e4beff..1ef4059ba 100644
--- a/lms/lms/widgets/CourseOutline.html
+++ b/lms/lms/widgets/CourseOutline.html
@@ -33,9 +33,9 @@
{{ chapter.title }}
-
+
diff --git a/lms/public/css/style.css b/lms/public/css/style.css
index a40923f1d..6ed745ce0 100644
--- a/lms/public/css/style.css
+++ b/lms/public/css/style.css
@@ -211,8 +211,8 @@ textarea.field-input {
font-size: var(--text-sm);
}
-body {
- background-color: #FFFFFF;
+.lessons {
+ margin-left: 1.5rem;
}
input[type=checkbox] {
@@ -611,7 +611,7 @@ input[type=checkbox] {
.chapter-description {
color: var(--gray-900);
font-size: var(--text-sm);
- margin-left: 0.5rem;
+ margin-left: 2rem;
margin-bottom: 0.5rem;
}
@@ -804,7 +804,7 @@ input[type=checkbox] {
.course-content-parent {
display: grid;
- grid-gap: 4rem;
+ grid-gap: 2rem;
grid-template-columns: 1fr 3fr;
}
diff --git a/lms/templates/lms_base.html b/lms/templates/lms_base.html
index 3e535dcfe..507589971 100644
--- a/lms/templates/lms_base.html
+++ b/lms/templates/lms_base.html
@@ -1,9 +1,5 @@
{% extends "templates/base.html" %}
-{% block meta_block %}
- {% include "templates/includes/meta_block.html" %}
-{% endblock %}
-
{% block content %}
{% include "public/icons/symbol-defs.svg" %}
{% include "lms/templates/onboarding_header.html" %}
diff --git a/lms/www/batch/edit.html b/lms/www/batch/edit.html
index 94a97e86b..85a333e17 100644
--- a/lms/www/batch/edit.html
+++ b/lms/www/batch/edit.html
@@ -47,7 +47,7 @@
{% if lesson.name %}
- {{ _("Preview") }}
+ {{ _("Back to Lesson") }}
{% endif %}
diff --git a/lms/www/batch/learn.html b/lms/www/batch/learn.html
index 21861494f..d23dd6712 100644
--- a/lms/www/batch/learn.html
+++ b/lms/www/batch/learn.html
@@ -247,7 +247,6 @@ {{ _("Embed Components") }}
- {{ include_script('controls.bundle.js') }}
{% for ext in page_extensions %}
{{ ext.render_footer() }}
{% endfor %}
diff --git a/lms/www/courses/course.html b/lms/www/courses/course.html
index f25be918a..c969dd2e7 100644
--- a/lms/www/courses/course.html
+++ b/lms/www/courses/course.html
@@ -352,8 +352,3 @@
{% endmacro %}
-
-{%- block script %}
- {{ super() }}
- {{ include_script('controls.bundle.js') }}
-{% endblock %}
diff --git a/lms/www/courses/course.py b/lms/www/courses/course.py
index 8b9647c10..3af669ed7 100644
--- a/lms/www/courses/course.py
+++ b/lms/www/courses/course.py
@@ -69,7 +69,7 @@ def set_course_context(context, course_name):
course.edit_mode = True
if course is None:
- redirect_to_courses_list()
+ raise frappe.PermissionError(_("This is not a valid course URL."))
related_courses = frappe.get_all(
"Related Courses", {"parent": course.name}, ["course"]
diff --git a/lms/www/courses/create.html b/lms/www/courses/create.html
index 9e6f07e01..fcc21299c 100644
--- a/lms/www/courses/create.html
+++ b/lms/www/courses/create.html
@@ -23,7 +23,7 @@
{% if course.name %}
- {{ _("Preview") }}
+ {{ _("Back to Course") }}
diff --git a/lms/www/jobs/job.py b/lms/www/jobs/job.py
index dfeffaf9d..5d91c4bda 100644
--- a/lms/www/jobs/job.py
+++ b/lms/www/jobs/job.py
@@ -7,4 +7,12 @@ def get_context(context):
except KeyError:
frappe.local.flags.redirect_location = "/jobs"
raise frappe.Redirect
+
context.job = frappe.get_doc("Job Opportunity", job)
+
+ context.metatags = {
+ "title": context.job.job_title,
+ "image": context.job.company_logo,
+ "description": f"Job Posting for {context.job.job_title} by {context.job.company_name}",
+ "keywords": "Job Opening, Job Posting, Job Opportunity, Job Vacancy, Job, Vacancy, Opening, Opportunity, Vacancy",
+ }