Skip to content

Commit 43d409c

Browse files
committed
Merge branch 'main' of https://github.com/frappe/lms
2 parents a5fc52e + a9b0657 commit 43d409c

File tree

13 files changed

+29
-12
lines changed

13 files changed

+29
-12
lines changed

lms/hooks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@
173173
"to_route": "cohorts/join",
174174
},
175175
{"from_route": "/users", "to_route": "profiles/profile"},
176-
{"from_route": "/jobs/<job>", "to_route": "jobs/job"},
176+
{"from_route": "/job-openings", "to_route": "jobs_openings/index"},
177+
{"from_route": "/job-openings/<job>", "to_route": "jobs_openings/job"},
177178
{
178179
"from_route": "/batches/<batchname>/students/<username>",
179180
"to_route": "/batches/progress",

lms/install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def add_pages_to_nav():
1919
{"label": "Courses", "url": "/courses", "parent": "Explore", "idx": 2},
2020
{"label": "Batches", "url": "/batches", "parent": "Explore", "idx": 3},
2121
{"label": "Statistics", "url": "/statistics", "parent": "Explore", "idx": 4},
22-
{"label": "Jobs", "url": "/jobs", "parent": "Explore", "idx": 5},
22+
{"label": "Jobs", "url": "/job-openings", "parent": "Explore", "idx": 5},
2323
{"label": "People", "url": "/community", "parent": "Explore", "idx": 6},
2424
]
2525

lms/job/doctype/job_opportunity/job_opportunity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
frappe.ui.form.on("Job Opportunity", {
55
refresh: (frm) => {
66
if (frm.doc.name)
7-
frm.add_web_link(`/jobs/${frm.doc.name}`, "See on Website");
7+
frm.add_web_link(`/job-openings/${frm.doc.name}`, "See on Website");
88
},
99
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
frappe.ready(function () {
22
frappe.web_form.after_save = () => {
33
setTimeout(() => {
4-
window.location.href = `/jobs`;
4+
window.location.href = `/job-openings`;
55
});
66
};
77
});

lms/job/web_form/job_opportunity/job_opportunity.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"list_columns": [],
2121
"login_required": 1,
2222
"max_attachment_size": 0,
23-
"modified": "2022-09-15 17:22:43.957184",
23+
"modified": "2022-09-15 17:22:43.957185",
2424
"modified_by": "Administrator",
2525
"module": "Job",
2626
"name": "job-opportunity",
@@ -32,7 +32,7 @@
3232
"show_list": 1,
3333
"show_sidebar": 0,
3434
"success_message": "",
35-
"success_url": "/jobs",
35+
"success_url": "/job-openings",
3636
"title": "Job Opportunity",
3737
"web_form_fields": [
3838
{

lms/patches.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,5 @@ lms.patches.v1_0.create_batch_source
8181

8282
[post_model_sync]
8383
lms.patches.v1_0.batch_tabs_settings
84-
execute:frappe.delete_doc("Notification", "Assignment Submission Notification")
84+
execute:frappe.delete_doc("Notification", "Assignment Submission Notification")
85+
lms.patches.v1_0.change_jobs_url #17-01-2024

lms/patches/v1_0/change_jobs_url.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import frappe
2+
3+
4+
def execute():
5+
jobs_link = frappe.db.exists(
6+
"Top Bar Item",
7+
{
8+
"label": "Jobs",
9+
"url": "/jobs",
10+
"parent_label": "Explore",
11+
},
12+
)
13+
14+
if jobs_link:
15+
frappe.db.set_value("Top Bar Item", jobs_link, "url", "/job-openings")
File renamed without changes.

lms/www/jobs/index.html renamed to lms/www/jobs_openings/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<div class="text-muted">{{ frappe.utils.format_date(job.creation, "medium") }}</div>
3838
</div>
3939
</div>
40-
<a class="stretched-link" href="/jobs/{{ job.name }}"></a>
40+
<a class="stretched-link" href="/job-openings/{{ job.name }}"></a>
4141
</div>
4242
{% endfor %}
4343
</div>
File renamed without changes.

0 commit comments

Comments
 (0)